コード例 #1
0
        public void thermostat_SeventeenDegreesAndFullPower()
        {
            var heater_on = Thermostat.thermostat(17, 100);

            Assert.AreEqual(1, heater_on);
        }
コード例 #2
0
        public void thermostat_SeventeenDegreesButLessThanHalfPower()
        {
            var heater_on = Thermostat.thermostat(17, 49);

            Assert.AreEqual(0, heater_on);
        }
コード例 #3
0
        public void thermostat_TwentyDegreesAndFullPower()
        {
            var heater_on = Thermostat.thermostat(20, 11);

            Assert.AreEqual(0, heater_on);
        }