Legacy Documentation. View NUnit 3 Documentation

Writing Tests

NUnit tests may be written using any .NET language that supports attributes.

Attributes are used to indicate test classes and methods and to modify their behavior in various ways.

Assertions test an actual value against one or more Constraints and result in either a successful test or a failure.

User code may acquire information about the test and it's environment by use of the Test Context.