Sunday, December 06, 2009
« Core CSLA .NET 3.8 Video Series pre-rele... | Main | CSLA .NET, MVVM AND DNR TV »

Last week I spent a few hours switching the CSLA .NET for Windows unit/integration tests from nunit to mstest.

This wasn’t terribly hard, because the tests were originally created with the idea of supporting both test frameworks. Of course as different people added tests over several years time inconsistencies crept in, and that’s what I had to address to make this switch.

I didn’t remove the compiler directives for nunit, so it should take relatively little effort to switch back to nunit, but I don’t personally plan to do that.

mstest is now available in all professional versions of Visual Studio 2010, and Microsoft is obviously faster about getting their test framework updated as .NET and Visual Studio change. Looking at www.nunit.org there’s no mention of VS10 or .NET 4.0. Yes, I know people have tweaked nunit to work on .NET 4.0, but mstest allows me to eliminate one level of uncertainty from my process.

Besides, there are all these really cool tools and capabilities in VS10, some of which tie into testing and coverage, and this gives me motivation to play with them :)

Friday, December 11, 2009 12:42:41 AM (Central Standard Time, UTC-06:00)
Just in case this post worries someone else the way it did me, nunit has no problem with VS2010 or .NET 4.0. It just needs to be recompiled. The project just hasn't released a official binary for the Beta of VS. In addition, the 3.0 version of nunit should make things like this much less relevant, since the goal is to make the test-runner CLR-version independent, so you no longer need a 2.0, 3.5, and 4.0 version of the test-runner, just a single one that can run tests in your assemblies, no matter which version they run on.
Wednesday, December 16, 2009 2:26:57 PM (Central Standard Time, UTC-06:00)
NUnit 2.5.3 - Version 2.5.3.9345 - December 11, 2009

Note: This is the first release of NUnit on Launchpad.
Features

* Test execution under .NET 4.0 is now supported. It may be selected in the Gui runner or using the console runner /framework option. NUnit test projects may specify .NET 4.0 as the required framework to be used for loading the the project. PlatformAttribute allows testing for .NET 4.0.

http://nunit.com/index.php?p=releaseNotes&r=2.5.3
Comments are closed.