You can download NUnit from http://www.nunit.org/
Getting started (Hello Test) !!!
Let's write our first test and run/debug it.
1. Create a class library in visual studio. A good convention is to suffix all your test projects with *Tests.
2. Add a reference to Nunit
3. Create a class and optionally suffix it with "Fixture". Then decorate it with the [TestFixture] attribute.
4. Create a public method, optionaly suffix it with "Test" and decorate it with the [Test] attribute.
5. Build your class library project.
6. You can run/dubug the unit test directly from studio if you have any plugin such as Resharper (VERY GOOD!!!) or TestDriven.Net or any other plugging.
nunit.exe
Start nunit.exe and create a new project. Then you add "assembly" or "VS Project", both will do.
You can directly run the test from the gui provide it.
If you want to debugg then goto Visual studio and attach to the nunit process. Then set the desired breakpoints, kick the test you'd like from the NUnit app and you should hit your breakpoints.
nunit-console.exe
MSBuild
The easiest way is to use some 3rd party msbuild task such as the http://msbuildtasks.tigris.org/
In order to use the tasks in this project, you need to import the MSBuild.Community.Tasks.Targets files. If you installed the project with the msi installer, you can use the following.
You can find info on msbuild at http://msbuildtasks.com/default.aspx
The task to call for NUnit is the following
Save the xml file, let's assume you name it NUnitSample.proj and call it from MSBuild


