How to write a NUnit test for an NUnit add-in?
问题 I'm working on a variation of this stack overflow answer that provides reliable cleanup of tests. How do you write unit tests for NUnit addins? Examining how NUnit self tests, I have determined: You can write tests, that pass, that verify correct behavior of NUnit for failing tests. You write unit tests against test fixtures in a separate assembly (otherwise the fixtures under test will execute with your unit tests) Use NUnit.TestUtilities.TestBuilder to create fixtures and call TestSuite.Run