コード例 #1
0
ファイル: EditModeRunner.cs プロジェクト: zmzmkkm/UnityStudy
 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);
 }
コード例 #2
0
ファイル: EditModeRunner.cs プロジェクト: zmzmkkm/UnityStudy
        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();
            }
        }
コード例 #3
0
 public TestListenerWrapper(TestStartedEvent testStartedEvent, TestFinishedEvent testFinishedEvent)
 {
     m_TestStartedEvent  = testStartedEvent;
     m_TestFinishedEvent = testFinishedEvent;
 }