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
- Add the following using statement - using NUnit.Framework
- Add [TestFixture] attribute to your class
- 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
- For each operation that you need to indicate is a test method mark it with the [Test, Category("...")], Category is optional
Related articles
Add Comment