private static void TestSetupFixtureHelper_OnTestException(TestExceptionEventArgs args) { if (args != null) { Assert.Fail(args.Message); } }
public TestResult(TestExceptionEventArgs args) : this(args.TestMethod) { Passed = false; Exception = args.Exception.Message; StackTrace = args.Exception.StackTrace; }
private static void TestResultLogger_OnTestException(TestExceptionEventArgs args) { if (args != null) { if (OnTestException != null) { OnTestException(args); } } }
public override void TestFailed(object sender, TestExceptionEventArgs args) { UnitTestMethod test = args.TestMethod.CopyAs <UnitTestMethod>(); TestExecution testExecution = SetTestExecution(test); testExecution.Passed = false; Exception ex = args.Exception?.GetInnerException(); testExecution.Exception = ex?.Message; testExecution.StackTrace = ex?.StackTrace; TestReportService.SaveTestExecution(testExecution); }
public override void TestFailed(object sender, TestExceptionEventArgs args) { TestFailedRan = true; }
public override void TestFailed(object sender, TestExceptionEventArgs args) { TestResult result = new TestResult(args); DaoRepository.Save(result); }