Assert on number and text of Nhibernate queries during a unit test

added by alkampfer
12/30/2011 9:38:28 AM

6 Kicks, 189 Views

A test helper class that permits me to assert on the number and text of the query that Nhibernate issued to the database during the test


1 comments

dpeterson
12/30/2011 9:38:13 AM
Nice solution. It's easy to have these kinds of problems pop up when using an ORM, even one as smart as NHibernate. Now it just requires a dev intelligent enough to know how/when to write these kinds of tests ;-)