Skip to content

Classic Model

Rob Prouse edited this page Mar 5, 2016 · 9 revisions

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...

Clone this wiki locally