Beispiel #1
0
        public void PlannerClass_MinimumSurfaceInterval_AllValues()
        {
            TimeSpan zeroHours  = new TimeSpan(0, 0, 0);
            TimeSpan oneHour    = new TimeSpan(1, 0, 0);
            TimeSpan threeHours = new TimeSpan(3, 0, 0);

            Assert.AreEqual(zeroHours, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz('A'), "Unexpected value for 'A'");
            Assert.AreEqual(zeroHours, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz('1'), "Unexpected value for '1'");
            Assert.AreEqual(zeroHours, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz(' '), "Unexpected value for ' '");
            Assert.AreEqual(zeroHours, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz('_'), "Unexpected value for '_'");

            Assert.AreEqual(oneHour, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz('W'), "Unexpected value for 'W'");
            Assert.AreEqual(oneHour, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz('X'), "Unexpected value for 'X'");
            Assert.AreEqual(threeHours, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz('Y'), "Unexpected value for 'Y'");
            Assert.AreEqual(threeHours, PlannerClass.AdjustMinimumSurfaceIntervalForRuleWxyz('Z'), "Unexpected value for 'Z'");
        }