Legacy Documentation. View NUnit 3 Documentation

Samples

  • C# - This sample written in C# demonstrates 4 failing unit tests and one test that is not run.
  • VB.NET - This sample written in VB.NET demonstrates 4 failing unit tests and one test that is not run.
  • Managed C++ - This is the same example as the others with four failing unit tests and one ignored test. NOTE:  The results are as expected when compiled in Debug mode. In Release mode the divide by zero test succeeds.
  • Visual J# - This has three failing tests and one ignored test written in J#. If you have not installed this when you go to open the Visual Studio solution file, it will inform you that  the file solution file cannot be loaded.
  • Money - This is a C# version of the money example which is found in most xUnit implementations. Thanks to Kent Beck.
  • Money-port - This is an example of the minimum amount of work that is needed to upgrade from previous versions of NUnit to this version.