Skip to content

Classic Model

jnm2 edited this page Mar 18, 2017 · 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