alkampfer on December 30th, 2011

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 [...]

kick it on DotNetKicks.com

Continue reading about Unit test NHibernate query to verify N+1

alkampfer on August 2nd, 2011

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 [...]

kick it on DotNetKicks.com

Continue reading about Using schema with NHibernate and SqlLite

alkampfer on March 22nd, 2011

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 [...]

kick it on DotNetKicks.com

Continue reading about Writing a custom assertion for SharpTestEx

alkampfer on December 29th, 2010

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 [...]

kick it on DotNetKicks.com

Continue reading about Test helper for a single method

alkampfer on November 8th, 2010

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 [...]

kick it on DotNetKicks.com

Continue reading about Extending Visual Studio 2010 Web Test–Regex extraction