public void Test_GetPhase_ByID_BadResult() { int intPhaseID = 0; Phase objPhase = new Phase(); objPhase.GetPhase(intPhaseID); Assert.IsNull(objPhase.PhaseName); }
public void Test_GetPhase_ByID_GoodResult() { int intPhaseID = 1; Phase objPhase = new Phase(); objPhase.GetPhase(intPhaseID); Assert.AreEqual(intPhaseID, objPhase.PhaseID); }
public void Test_GetPhase_ByName_GoodResult() { string strPhaseName = "Swift"; Phase objPhase = new Phase(); objPhase.GetPhase(strPhaseName); Assert.AreEqual(strPhaseName, objPhase.PhaseName); }
public void Test_GetPhase_ByName_BadResult() { string strPhaseName = "blah blah"; Phase objPhase = new Phase(); objPhase.GetPhase(strPhaseName); Assert.IsNull(objPhase.PhaseName); }
public static void TrackPhaseProgress(Phase PhaseInProgress) { string Label = "P" + PhaseInProgress.GetPrison() + "_" + "L" + PhaseInProgress.GetLevel() + "_" + "PH" + PhaseInProgress.GetPhase(); int Progress = PhaseInProgress.IsPhaseCompleted() ? 1 : 0; Debug.Log("LevelTracker.cs -> Phase Being Saved:" + Label + " as " + Progress); PlayerPrefs.GetInt (Label); PlayerPrefs.SetInt(Label, Progress); }