How can I customize an ASP.NET MVC application using NUnit unit tests in Visual Web Developer 2010 Express?
1 answer
It's actually quite simple:
- Download NUnit.
- Set up a new Console Application or Class Library in Visual Studio.
- Add a link to
nunit.framework
. - Add a link to the class library you want to test (put the code you want to test into a separate class library)
- Follow the instructions on how to create your own tests.
See this link for a sample MVC 1.0 project and sample templates, or this link for MVC 2.0 templates.
+4
a source to share