/*if switch is on and temperature is low, according to common sense, return true*/ public void LowTempWithSwitchOn(float temp, bool expected) { bool result = Heater.SetState(temp, switch_on); Assert.AreEqual(expected, result); }
/*if switch is off and temperatrue is high,according to common sense, return false*/ public void HighTempWithSwitchOff(float temp, bool expected) { bool result = Heater.SetState(temp, switch_off); Assert.AreEqual(expected, result); }