public RCRunnerAPI()
 {
     RunningTestsCount    = new RunningTestsCount();
     _testCasesController = new TestScriptsController(RunningTestsCount);
     TestClassesList      = new List <TestScript>();
     CustomAttributesList = new List <string>();
     _testCasesController.TestCaseStatusChanged = OnMethodStatusChanged;
     _testCasesController.Canceled = CheckTasksCanceled;
     _canceled = false;
 }
        public void OnMethodStatusChanged(TestScript testcaseScript)
        {
            RunningTestsCount.Update(testcaseScript);
            if (MethodStatusChanged != null)
            {
                MethodStatusChanged(testcaseScript);
            }

            if (Done())
            {
                _pluginLoader.CallAfterTestRunPlugins(_runningTestCases);
            }
        }
Exemple #3
0
 public TestScriptsController(RunningTestsCount runningTestsCount)
 {
     _runningTestsCount = runningTestsCount;
     _obj = new object();
 }