I am mapping some table valued functions in nHibernate using HBM files. Our table functions have been changing quite a bit lately, so I want to make sure our mapping files are updated when these changes are made. I am able to unit test my mapping files by running my function that loads the HBM query, adds parameters and executes the query. If my mapping file has an extra column, a misspelled column or a wrong datatype, I know something is wrong because the query will fail.
But the query does not fail if the table valued function contains a new column that my mapping file does not? Is there any way to add this to my tests?