예제 #1
0
 private static void TestSetupFixtureHelper_OnTestException(TestExceptionEventArgs args)
 {
     if (args != null)
     {
         Assert.Fail(args.Message);
     }
 }
예제 #2
0
 public TestResult(TestExceptionEventArgs args)
     : this(args.TestMethod)
 {
     Passed     = false;
     Exception  = args.Exception.Message;
     StackTrace = args.Exception.StackTrace;
 }
 private static void TestSetupFixtureHelper_OnTestException(TestExceptionEventArgs args)
 {
     if (args != null)
     {
         Assert.Fail(args.Message);
     }
 }
예제 #4
0
 private static void TestResultLogger_OnTestException(TestExceptionEventArgs args)
 {
     if (args != null)
     {
         if (OnTestException != null)
         {
             OnTestException(args);
         }
     }
 }
 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);
        }
예제 #7
0
 public override void TestFailed(object sender, TestExceptionEventArgs args)
 {
     TestFailedRan = true;
 }
예제 #8
0
        public override void TestFailed(object sender, TestExceptionEventArgs args)
        {
            TestResult result = new TestResult(args);

            DaoRepository.Save(result);
        }