Exemplo n.º 1
0
 private void TestFinishedHandler(SA_TestResult obj)
 {
     OnTestFinished.Invoke(obj);
     if (obj.IsFailed && m_currentTest.TestStopsTestGroup)
     {
         m_currentTest = null;
         m_callback.Invoke();
     }
     else
     {
         m_currentTest = null;
         RunNextTest();
     }
 }
Exemplo n.º 2
0
 private void RunNextTest()
 {
     if (m_tests.Count > 0)
     {
         m_currentTest                 = new SA_SingleTestRunner(m_tests[0]);
         m_currentTest.OnTestStart    += TestStartHandler;
         m_currentTest.OnTestFinished += TestFinishedHandler;
         m_tests.RemoveAt(0);
         m_currentTest.Execute();
     }
     else
     {
         Finish();
     }
 }