Esempio n. 1
0
        public void KonstruktorOk(double min, double max)
        {
            var thermostat = new Hydraulik.Thermostat(min, max);

            Assert.Equal(min, thermostat.GetTemperaturMin());
            Assert.Equal(max, thermostat.GetTemperaturMax());
        }
Esempio n. 2
0
        public void HystereseTesten(bool exp, double min, double max, double temp1, double temp2)
        {
            var thermostat = new Hydraulik.Thermostat(min, max);

            thermostat.SetTemperatur(temp1);
            thermostat.SetTemperatur(temp2);

            Assert.Equal(exp, thermostat.GetTemperaturErreicht());
        }