What is NUnit?

  • NUnit is an automated unit testing framework for .NET
  • NUnit is free to use with your .NET projects.
  • NUnit is ported from another product called JUnit, which is a unit testing framework for Java applications.
  • NUnit provides a class library which includes some classes and methods to help you write test scripts.
  • NUnit provides graphical user interface application to execute all the test scripts and show the result as a success/failure report (instead of message boxes from the test script).
  • NUnit is the most popular unit testing framework for .net applications.
  • NUnit does not create any test scripts by itself. You have to write test scripts by yourself, but NUnit allows you to use it’s tools and classes to make the unit testing easier.
  • NUnit is an open source product. You can get this tool along with source code and modify the source code if required for your specific needs. However, 99% of the programmers do not mess with the source code. Instead, you can download only the executable and class library and implement unit test scripts for your application.

Now Microsoft offers a team collaboration system called ‘Visual Studio Team System’ (VSTS). This tool includes a unit testing framework also. So, eventually most of the developers may switch to VSTS instead of NUnit. However, NUnit will continue to exist because it is free and easy to use.

Tagged . Bookmark the permalink.

Leave a Reply