About Links Archives Search Feed Albums of Note


MbUnit and nUnit VS Templates

If, like me, you’re slowly getting into test-driven development, it becomes apparent that there are several ways to create a class library and a set of tests that challenge it in Visual Studio. Then it becomes obvious that the best way to do it and not leave test code in your releases is to create something like this where the tests are in a separate project.

To speed up the creation of solutions like these, I’ve created two templates to plug into Visual Studio to do it for you. There’s one for testing with MbUnit [http://www.mbunit.com/] 2.3 RTM [http://weblogs.asp.net/astopford/archive/2006/12/07/mbunit-2-3-rtm.aspx] and one for NUnit [http://www.nunit.com/]2.2.9 [http://nunit.com/blogs/?p=43]. Download the one you want to your VS2005 Project Templates folder and then create a new project. You’ll see the options to use the templates automagically.

Let me know how you get on and if you’d change them in some way. * Download MbUnit 2.3 VS Template [/file.axd?file=MbUnit23TestedClass.zip] * Download NUnit 2.2.9 VS Template [/file.axd?file=NUnit229TestedClass.zip]

Posted on January 2, 2007   #Geek Stuff  






← Next post    ·    Previous post →