$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

In order to use NUnit with Visual Studio you do not need to install or configure NUnit into Visual Studio.  You will simply load .DLLs or .EXEs into NUnit through it's GUI.

Step-by-step guide

  1. Add the following using statement - using NUnit.Framework
  2. Add [TestFixture] attribute to your class
  3. If you need to initialise objects that you want to reuse across multiple tests add a setup method, this is done by adding the [Setup] attribute
  4. For each operation that you need to indicate is a test method mark it with the [Test, Category("...")], Category is optional

 

  • No labels