Classic Model

Rob Prouse edited this page Mar 5, 2016 · 3 revisions
Clone this wiki locally

The classic Assert model uses a separate method to express each individual assertion of which it is capable.

Here's a simple assert using the classic model:

      StringAssert.AreEqualIgnoringCase( "Hello", myString );

The Assert class provides the most common assertions in NUnit:

Additional assertions are provided by the following classes:

See also...