Hello,
Sorry I am not able to understand 'How can I have one TestCleanup() for all my test classes? I have a test class for each class and have ended up with many test classes as result.', could you please offer more detailed information?
Usually method marked with
[TestCleanup()] is executed after each single test has run while method marked with [ClassCleanup()] is executed after all the tests have run. In addition, normally all the unit tests are organized in one single class.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at
fbmsdn@microsoft.com.