public void MyTestCleanup() { Cleanup(); // Delete unzipped test files if test otherwise passed to make sure file handles // are not still open. Files may still be open otherwise, and trying this could // mask the original error. if (TestFilesDirs != null && TestContext.CurrentTestOutcome == UnitTestOutcome.Passed) { foreach (TestFilesDir dir in TestFilesDirs) { if (dir != null) { dir.Dispose(); } } } STOPWATCH.Stop(); Settings.Release(); // Save profile snapshot if we are profiling. DotTraceProfile.Save(); // var log = new Log<AbstractUnitTest>(); // log.Info( // string.Format(TestContext.TestName + " finished in {0:0.000} sec.\r\n-----------------------", // STOPWATCH.ElapsedMilliseconds / 1000.0)); }
public void MyTestCleanup() { Cleanup(); STOPWATCH.Stop(); Settings.Release(); // Save profile snapshot if we are profiling. DotTraceProfile.Save(); // var log = new Log<AbstractUnitTest>(); // log.Info( // string.Format(TestContext.TestName + " finished in {0:0.000} sec.\r\n-----------------------", // STOPWATCH.ElapsedMilliseconds / 1000.0)); }