views:

217

answers:

2

I'm experimenting with potentially using Visual Web Developer 2008 Express for a project, but since the Express edition doesn't support the publish feature and since the ide also does not create any *proj files, how can I use the nunit gui to run my tests?

+2  A: 

The approach I would take is move as much business logic as you can into a Class Library, and have your website use this Class Library and your unit tests test that Class Library.

Andrew Shepherd
+1  A: 

Your unit tests should reside in a separate project from the main project, and be a class library as well. From there, you can simply build your test project, and then open up the generated DLL in the NUnit GUI to run the tests.

I also second Andrew's suggestion on moving the business logic to a separate DLL away from the web project you create, as it makes it easier to unit test and re-use.

arabian tiger