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); } }
public TestScriptsController(RunningTestsCount runningTestsCount) { _runningTestsCount = runningTestsCount; _obj = new object(); }