When you work with ORM like nhibernate, having a tool like nhprof is the key of success. But even with NHProfiler you could not prevent people of doing wrong stuff because they do not use it . I have a simple scenario, a developer changed a method on the server lazily fetching a property of [...]
Continue reading about Unit test NHibernate query to verify N+1
Some time ago I blogged about a technique to use SqLite in Unit testing when you have nhibernate mapping that targets Sql Server tables in a schema different from dbo. The problem was: if you specify the schema name in the mapping of a class, then you are not able to execute the test in [...]
Continue reading about Using schema with NHibernate and SqlLite
Actually SharpTestEx is my favorite way to make assertions in Unit testing. It has a lot of advantages, first of all it permits to write really clear assertions, then it works on the main Unit testing framework, so I can use the same assertion syntax for nunit and for MStest or MbUnit etc etc. Another [...]
Continue reading about Writing a custom assertion for SharpTestEx
I’ve build during years a test helper infrastructure that permits me to decorate a test fixture with some custom attributes that are capable to execute code before and after fixture setup/teardown or test setup/teardown. Now my dear friend Ugo needs for Dexter a modified version of this framework to be able to apply attributes directly [...]
In a previous post I showed how to create a custom loop that permits you to create a loop in a web performance test to iterate from the char ‘a’ to char ‘z’, now I want to be able to create an inner loop that for each loop extract all the names of the customers [...]
Continue reading about Extending Visual Studio 2010 Web Test–Regex extraction





