Setting Up NUnit

This section describes how to get, install, and configure NUnit, and explains what is included in the installation.

Prerequisites

NUnit 2.2, the fourth major release of NUnit, runs on Windows 98, ME, NT, 2000, 2003, and XP (as well as Linux, Unix, and Mac OS X). If you are running Windows 98, ME, NT, or 2000, you might need to download the Windows Installer from the Microsoft Download Center http://www.microsoft.com/downloads. This will allow you to install the NUnit .msi file.

Select Windows Installer from the Products/Technology dropdown menu, and pick the installer for your operating system.

Programming Languages

NUnit supports all .NET programming languages and works across all .NET languages. For example, you can write unit tests in VB.NET to test C# code.

NUnit supports testing assemblies written in any .NET language. Support is limited to C#, VB.NET, J#, and C++ if you intend to open Visual Studio .NET projects and solutions directly rather than open the compiled assemblies.

Getting NUnit

The official NUnit site is http://www.nunit.org. At this site, you will find download instructions, documentation, and contact information for the developers.

You can download the most recent version of NUnit from the Files section of the SourceForge.net project page at http://sourceforge.net/projects/nunit/. The site has discussion groups about NUnit, as well as add-ins for NUnit that are discussed later in "Extending NUnit." Discussion groups are located at http://sourceforge.net/forum/?group_id=10749 ...

Get NUnit Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.