public void TearDown()
 {
     if (!EditorApplication.isPlaying)
     {
         SystemScheduleTestUtilities.DestroySystemsWindow(m_SystemScheduleWindow);
     }
 }
        public void SetUp()
        {
            m_DefaultWorld    = World.DefaultGameObjectInjectionWorld;
            m_TestSystemGroup = m_DefaultWorld.GetOrCreateSystem <SystemScheduleTestGroup>();
            m_TestSystem1     = m_DefaultWorld.GetOrCreateSystem <SystemScheduleTestSystem1>();
            m_TestSystem2     = m_DefaultWorld.GetOrCreateSystem <SystemScheduleTestSystem2>();
            m_TestSystemGroup.AddSystemToUpdateList(m_TestSystem1);
            m_TestSystemGroup.AddSystemToUpdateList(m_TestSystem2);
            m_DefaultWorld.GetOrCreateSystem <SimulationSystemGroup>().AddSystemToUpdateList(m_TestSystemGroup);

            m_SystemScheduleWindow = !EditorApplication.isPlaying ? SystemScheduleTestUtilities.CreateSystemsWindow() : EditorWindow.GetWindow <SystemScheduleWindow>();

            m_SystemScheduleWindow.SelectedWorld = m_DefaultWorld;
            m_SystemScheduleWindow.BaseState.SelectedWorldName = k_SystemScheduleEditorWorld;
        }