Updated NUnit Templates for ASP.Net MVC 1.0 RTM

Here is a cross post from my team’s blog: http://blogs.msdn.com/webdevtools

ASP.Net MVC 1.0 RTM has been out for a while and I noticed that people are still downloading an NUnit sample project I created for ASP.Net MVC Preview 3. Since then an AccountController class and a corresponding set of unit tests have been added to the MVC Application project. I created an updated set of NUnit templates with tests for the Home and Account controllers. To install the templates, just extract the zip file from the link below and run installNUnit.cmd. VWD Express is supported along with VSTS as well as support for x86 and x64 bit OS’s. If you are installing on Vista or higher, run the cmd file as an admin.

NUnit Test Templates 

Below is a screenshot of the NUnit AccountControllerTest class for Visual Basic. If you build a new MVC project with NUnit selected as the test framework and run the test project dll in NUnit, you will see all the tests pass.



 Hope this helps you unit test your MVC Apps!

Joe Cartano | Visual Web Developer