public void TurnOnFlowTest() { ControlDevice device = new ControlDevice(); device.ConnectToDevice(); device.TurnOnFlow(); }
public void ConnectToDeviceTest() { ControlDevice device = new ControlDevice(); Assert.IsTrue(device.ConnectToDevice()); device.DisConnectFromDevice(); }
public void GetMainTemperatueForDeviceTest() { ControlDevice device = new ControlDevice(); device.ConnectToDevice(); device.SetTemperatueLimitsForDevice(10, 28); float currentTemp = device.GetMainAirTemperatureFromDevice(); Assert.IsTrue(currentTemp >= 10 && currentTemp <= 28); device.DisConnectFromDevice(); }
public void GetLimitsAirTemperatureFromDeviceTest() { ControlDevice device = new ControlDevice(); device.ConnectToDevice(); device.SetTemperatueLimitsForDevice(17, 29); float lowLimitTemperature = device.GetLowAirTemperatureLimit(); Assert.AreEqual(lowLimitTemperature, 17); float highLimitTemperature = device.GetHighAirTemperatureLimit(); Assert.AreEqual(highLimitTemperature, 29); device.DisConnectFromDevice(); }