public void FinishBlock() { var prevWriter = _blocks.Pop(); _writer.Dispose(); _writer = prevWriter; }
/// <summary> /// Called when a test run is completed. /// </summary> private void TestRunCompleteHandler(object sender, TestRunCompleteEventArgs e) { if (_currentAssemblySuite != null) { _currentAssemblySuite.Dispose(); } _vsTestSuite.Dispose(); _teamCityWriter.Dispose(); Trace.WriteLine(string.Format("Total Executed: {0}", e.TestRunStatistics.ExecutedTests)); Trace.WriteLine(string.Format("Total Passed: {0}", e.TestRunStatistics[TestOutcome.Passed])); Trace.WriteLine(string.Format("Total Failed: {0}", e.TestRunStatistics[TestOutcome.Failed])); Trace.WriteLine(string.Format("Total Skipped: {0}", e.TestRunStatistics[TestOutcome.Skipped])); }
public void OnTestRunComplete() { _testSuiteWriter?.Dispose(); _rootWriter.Dispose(); _suiteNameProvider.Reset(); }
private void OnTestRunComplete(object sender, TestRunCompleteEventArgs ev) { _testSuiteWriter?.Dispose(); _rootWriter.Dispose(); _suiteNameProvider.Reset(); }