To install the NUnit unit testing framework, download the NUnit.msi installation file from Source Forge. At the time of this writing, the latest version is v2.4.7.

nunitsfdl

After clicking "Download" you will be redirected to the screen below. Be sure to click the .msi file as we are going with the automatic installation for this tutorial.

nudlinst2

When done downloading, install the application accepting all of the default settings.

Quickly, to verify a proper installation. Launch the NUnit GUI application. (NUnit must be run as Administrator for some tests to pass).

RAAdmin

When the application opens, go to the file menu, choose "Open Project" and select the NUnitTests project.

nunitopenproj

(For the first run, the File Open Dialog box should automatically open in the NUnit bin directory.

If not, the files should be located at "{root_drive_letter}:\Program Files\NUnit 3.5.7\bin\").

nunittestdialog

With the top most node in the tree selected, click "Run". All tests should pass. If you encounter I/O related failures, then NUnit is probably not
running in the context of an Administrator.

nunitTestRun

Now that NUnit is installed, you are ready for the next phase in test driven development, writing the code.

Comments


Comments are closed