NUnit Attribute | Description |
Test Feature | Marks a class that contains test methods. Contained in the NUnit.Framework namespace. |
Test | Marks a specific method within a class that has already been marked as a TestFixture. Test takes no parameters and uses one of several assertions: IsTrue/IsFalse, IsNull/IsNotNull, AreSame, AreEqual, Fail. |
Setup/Teardown | Performs test environment setup tasks (such as establish database connection) prior to running the tests and restoring the environment after the tests are complete. |
Expected Exception | Specifies that the execution of a test will throw an exception. The test will pass if the exception is thrown. |
Ignore | Specifies that a test or test fixture should not be run for a period of time. This is preferable to commenting out or renaming tests. |
Table 1: NUnit testing fundamentals.