I want to invoke a method when my integration test fails (i.e., Assert.AreEqual
fails), is there any event delegate that I can subscribe to in NUnit framework? Of course the event delegate must be fired when the tests fail.
This is because in my tests there are a lot of Assert
statement, and I can't tell need to log the Assert
, along with the assertion information that cause a problem in my bug tracker. The best way to do this is to when the test fails, a delegate method is invoke.