void RuntimeErrorCleanup(TestContext testContext, UnitTest t, Exception ex) { UnitTestResult result = UnitTestResult.CreateFailure(ex); t.RegisterResult(testContext, result); while (t != null && t != this) { testContext.Monitor.EndTest(t, result); t.Status = TestStatus.Ready; t = t.Parent; } }
void RuntimeErrorCleanup(TestContext testContext, UnitTest t, Exception ex) { UnitTestResult result = UnitTestResult.CreateFailure (ex); t.RegisterResult (testContext, result); while (t != null && t != this) { testContext.Monitor.EndTest (t, result); t.Status = TestStatus.Ready; t = t.Parent; } }