public void RunTests(TestFilter filter, UnitTestRunner.ITestRunnerCallback testRunnerEventListener)
        {
            try
            {
                if (testRunnerEventListener != null)
                {
                    testRunnerEventListener.RunStarted(testSuite.TestName.FullName, testSuite.TestCount);
                }

                ExecuteTestSuite(testSuite, testRunnerEventListener, filter);

                if (testRunnerEventListener != null)
                {
                    testRunnerEventListener.RunFinished();
                }
            }
            catch (Exception e)
            {
                Debug.LogException(e);
                if (testRunnerEventListener != null)
                {
                    testRunnerEventListener.RunFinishedException(e);
                }
            }
        }
Ejemplo n.º 2
0
 public void RunFinished(Exception exception)
 {
     testRunnerEventListener.RunFinishedException(exception);
 }