public static IEnumerator RunFacilitatorSceneTest(string SceneName)
        {
            SceneManager.LoadScene(SceneName);
            yield return(null);

            TestFacilitator facilitator = GameObject.FindGameObjectWithTag("Facilitator").GetComponent <TestFacilitator>();

            yield return(facilitator.RunTest());

            Debug.Log(facilitator.GetTestStatus());
            Assert.IsTrue(facilitator.overallStatus == TestFacilitator.OverallTestStatus.Passed, "Overall Status Passed?");
        }
Exemple #2
0
 private void Start()
 {
     Title.text  = SceneManager.GetActiveScene().name;
     Facilitator = GameObject.FindGameObjectWithTag("Facilitator").GetComponent <TestFacilitator>();
 }