NUnit: Accessing the Failure Message in TearDown()
问题 I'm trying to log the results of automated tests run in NUnit in a small database so that data is easily accessible and more securely logged for various reasons. (There's about ~550 automated tests and running them all can take days) I already have access to the ending status of the test (Passed/Failed/Error/Cancelled/Skipped etc..) but I'd like to log the extra detail. I am looking to do this within TearDown(). This is the closest thing I could find, but did not provide me with an answer: