Now with ASP.Net MVC 2 RC 2 out, it's time to have a working NUnit template.
The instructions here were a start, however, I took it a step further and synchronized most of the template code with the MVC 2 template code. This gave me a really good result and is really quite workable.
Try it for yourself. Get started with the following instructions:
Copy the included "MvcApplication.NUnit.Testsv2.0.cs.zip" to "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\Test".
If on a x64 bit machine, then %ProgramFiles(x86)% normally equals "C:\Program Files (x86)", otherwise, it's the normal location of "C:\Program Files".
If on a x64 bit machine, then %ProgramFiles(x86)% normally equals "C:\Program Files (x86)", otherwise, it's the normal location of "C:\Program Files".
Import the correct registry file (NUnit.reg or NUnit64bit.reg) to register the new template with MVC 2.
Open the "Visual Studio 2008 Command Prompt", running as administrator. Then run "devenv /setup". Once that is done, the template should be ready to use.
These templates require NUnit 2.5 or higher. Since I don't use VB.Net, I didn't make a corresponding template, if someone would like to contribute that, please feel free.