Beispiel #1
0
        public void Regulate_heaterOn_returnsFalse()
        {
            var uut = new FakeEcs(26, new TempSensor(), new FakeHeater()); // treshold is 26, but is 25, turn on heater

            Assert.That(uut.Regulate(), Is.True);
        }
Beispiel #2
0
        public void Regulate_HeaterOn_returnsTrue()
        {
            var uut = new FakeEcs(10, new TempSensor(), new FakeHeater());

            Assert.That(uut.Regulate(), Is.False);  //treshold is 10 but is 25, dont turn on heater
        }