Beispiel #1
0
        public void Test_GetPhase_ByID_BadResult()
        {
            int   intPhaseID = 0;
            Phase objPhase   = new Phase();

            objPhase.GetPhase(intPhaseID);

            Assert.IsNull(objPhase.PhaseName);
        }
Beispiel #2
0
        public void Test_GetPhase_ByID_GoodResult()
        {
            int   intPhaseID = 1;
            Phase objPhase   = new Phase();

            objPhase.GetPhase(intPhaseID);

            Assert.AreEqual(intPhaseID, objPhase.PhaseID);
        }
Beispiel #3
0
        public void Test_GetPhase_ByName_GoodResult()
        {
            string strPhaseName = "Swift";
            Phase  objPhase     = new Phase();

            objPhase.GetPhase(strPhaseName);

            Assert.AreEqual(strPhaseName, objPhase.PhaseName);
        }
Beispiel #4
0
        public void Test_GetPhase_ByName_BadResult()
        {
            string strPhaseName = "blah blah";
            Phase  objPhase     = new Phase();

            objPhase.GetPhase(strPhaseName);

            Assert.IsNull(objPhase.PhaseName);
        }
Beispiel #5
0
    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);
    }