public void TestFinished(NUnit.Core.TestResult result) { TestResult ourResult = testConverter.ConvertTestResult(result); ourResult.Messages.Add(new TestResultMessage(TestResultMessage.StandardOutCategory, Output)); this.testLog.RecordEnd(ourResult.TestCase, ourResult.Outcome); this.testLog.RecordResult(ourResult); Output = ""; }
public void SuiteFinished(NUnit.Core.TestResult result) { if ((result.IsError || result.IsFailure) && (result.FailureSite == FailureSite.SetUp || result.FailureSite == FailureSite.TearDown)) { testLog.SendMessage( TestMessageLevel.Error, string.Format("{0} failed for test fixture {1}", result.FailureSite, result.FullName)); if (result.Message != null) { testLog.SendMessage(TestMessageLevel.Error, result.Message); } if (result.StackTrace != null) { testLog.SendMessage(TestMessageLevel.Error, result.StackTrace); } } }
public void RunFinished(NUnit.Core.TestResult result) { }