コード例 #1
0
        public void OnEnable()
        {
            if (m_ExecuteOnEnable)
            {
                InitRunner();
                m_ExecuteOnEnable = 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.uniqueName).ToList();
                UnityWorkItemDataHolder.alreadyStartedTests  = m_AlreadyStartedTests;
                Run();
            }
        }
コード例 #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();
            }
        }