Skip to content

Classic Model

Mikkel Nylander Bundgaard edited this page May 24, 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