How to use NUnit with Visual Studio 2008.
First you should install both NUnit and Visual Studio 2008. I happen to have Visual Studio 2008 Pro and it comes with a Test menu.
Second, download the NUnitTestExample and install it on your Visual Studio 2008 project. Open the project file and compile it.
Third, go to the bin folder of the project and drag the .dll file into the NUnit icon on your desktop. In other words, open the NUnit with the .dll file as the parameter.
Fourth, click the “run” button to run the specific test of this project.
That is it. You can use this starter C# Library project as a starting point for a Test Driven Development (TDD).













Jim C said
Thanks!! was just trying figure out how to do this; using VS2008-EE and we’ll see if it works. Which library am I supposed to use? This project has 2 libraries in it, A & B. Which one should I use / compile?
Tommi Laukkanen said
You can also use Visual Nunit open source plugin to debug nunit tests in Visual Studio 2008: http://www.bubblecloud.org/visualnunit