I'm pretty new in testing. After some simple exercises with Visual Studio I have turned to Nunit test framework. What I'm looking for is a property or a method to use inside a [TearDown]
test method that provides me a string that contains, in failure case, the error message.
For example if I code this assertion:
Assert.That(true, Is.False);
then the framework gets this error message:
Message: Expected: False But was: True
What I need is the string above. Thanks.