// ---------------------------------------------------------------------------------------------------- // Acquires the test objects in the scene // ---------------------------------------------------------------------------------------------------- protected void AcquireTestObjects() { m_Camera = GameObject.Find("InstructorCamera").GetComponent <InstructorCamera>(); m_TransitionP0T1C00 = new GameObject("P0T1C00"); m_TransitionP0T1C00.AddComponent <MockTransition>(); m_TransitionP0T1C00.AddComponent <MockPositioner>(); m_TransitionP0T1C00.AddComponent <MockOrienter>(); P0T1C00.__TestSetPriority(ContainerPriority.None); P0T1C00.__TestSetTime(m_FastTime); m_TransitionP0T2C01 = new GameObject("P0T2C01"); m_TransitionP0T2C01.AddComponent <MockTransition>(); m_TransitionP0T2C01.AddComponent <MockPositioner>(); m_TransitionP0T2C01.AddComponent <MockOrienter>(); P0T2C01.__TestSetPriority(ContainerPriority.None); P0T2C01.__TestSetTime(m_SlowTime); m_TransitionP0T1C10 = new GameObject("P0T1C10"); m_TransitionP0T1C10.AddComponent <MockTransition>(); m_TransitionP0T1C10.AddComponent <MockPositioner>(); m_TransitionP0T1C10.AddComponent <MockOrienter>(); P0T1C10.__TestSetPriority(ContainerPriority.None); P0T1C10.__TestSetTime(m_FastTime); m_TransitionP0T2C11 = new GameObject("P0T2C11"); m_TransitionP0T2C11.AddComponent <MockTransition>(); m_TransitionP0T2C11.AddComponent <MockPositioner>(); m_TransitionP0T2C11.AddComponent <MockOrienter>(); P0T2C11.__TestSetPriority(ContainerPriority.None); P0T2C11.__TestSetTime(m_SlowTime); m_TransitionP1T1C00 = new GameObject("P1T1C00"); m_TransitionP1T1C00.AddComponent <MockTransition>(); m_TransitionP1T1C00.AddComponent <MockPositioner>(); m_TransitionP1T1C00.AddComponent <MockOrienter>(); P1T1C00.__TestSetPriority(ContainerPriority.Zone1); P1T1C00.__TestSetTime(m_FastTime); m_TransitionP1T2C01 = new GameObject("P1T2C01"); m_TransitionP1T2C01.AddComponent <MockTransition>(); m_TransitionP1T2C01.AddComponent <MockPositioner>(); m_TransitionP1T2C01.AddComponent <MockOrienter>(); P1T2C01.__TestSetPriority(ContainerPriority.Zone1); P1T2C01.__TestSetTime(m_SlowTime); m_TransitionP2T1C00 = new GameObject("P2T1C00"); m_TransitionP2T1C00.AddComponent <MockTransition>(); m_TransitionP2T1C00.AddComponent <MockPositioner>(); m_TransitionP2T1C00.AddComponent <MockOrienter>(); P2T1C00.__TestSetPriority(ContainerPriority.Zone2); P2T1C00.__TestSetTime(m_FastTime); m_TransitionP2T2C01 = new GameObject("P2T2C01"); m_TransitionP2T2C01.AddComponent <MockTransition>(); m_TransitionP2T2C01.AddComponent <MockPositioner>(); m_TransitionP2T2C01.AddComponent <MockOrienter>(); P2T2C01.__TestSetPriority(ContainerPriority.Zone2); P2T2C01.__TestSetTime(m_SlowTime); }
// ---------------------------------------------------------------------------------------------------- // Setup test resources, called before each test // ---------------------------------------------------------------------------------------------------- public override void SetUp() { AcquireTestObjects(); P0T1C00.__TestInit(); P0T2C01.__TestInit(); P0T1C10.__TestInit(); P0T2C11.__TestInit(); P1T1C00.__TestInit(); P1T2C01.__TestInit(); P2T1C00.__TestInit(); P2T2C01.__TestInit(); // Camera does not support having no instructors m_Camera.AddCut(P0T2C01); m_Camera.__TestInit(); }