I am writing coded ui tests and I have the application open if it is not already open. Then if one of them fails I close the application the thing is I have multiple tests in mu
If you just want to clean up after all tests inside a single class have finished, use the ClassCleanup attribute rather than the AssemblyCleanup attribute