public void Init(Filter[] filters, TestPlatform platform, bool runningSynchronously, ITest testTree, RunStartedEvent runStartedEvent, TestStartedEvent testStartedEvent, TestFinishedEvent testFinishedEvent, RunFinishedEvent runFinishedEvent) { m_Filters = filters; m_TestPlatform = platform; m_AlreadyStartedTests = new List <string>(); m_ExecutedTests = new List <TestResultSerializer>(); RunningSynchronously = runningSynchronously; m_RunStartedEvent = runStartedEvent; m_TestStartedEvent = testStartedEvent; m_TestFinishedEvent = testFinishedEvent; m_RunFinishedEvent = runFinishedEvent; InitRunner(testTree); }
public void Resume(ITest testTree, RunStartedEvent runStartedEvent, TestStartedEvent testStartedEvent, TestFinishedEvent testFinishedEvent, RunFinishedEvent runFinishedEvent) { if (m_ResumeAfterDomainReload) { m_RunStartedEvent = runStartedEvent; m_TestStartedEvent = testStartedEvent; m_TestFinishedEvent = testFinishedEvent; m_RunFinishedEvent = runFinishedEvent; InitRunner(testTree); m_ResumeAfterDomainReload = false; foreach (var callback in m_CallbackObjects) { AddListeners(callback as ITestRunnerListener); } m_ConstructDelegator = new ConstructDelegator(m_TestRunnerStateSerializer); EnumeratorStepHelper.SetEnumeratorPC(m_CurrentPC); UnityWorkItemDataHolder.alreadyExecutedTests = m_ExecutedTests.Select(x => x.fullName).ToList(); UnityWorkItemDataHolder.alreadyStartedTests = m_AlreadyStartedTests; Run(); } }
public TestListenerWrapper(TestStartedEvent testStartedEvent, TestFinishedEvent testFinishedEvent) { m_TestStartedEvent = testStartedEvent; m_TestFinishedEvent = testFinishedEvent; }