Exemple #1
0
        public void TurnOnFlowTest()
        {
            ControlDevice device = new ControlDevice();

            device.ConnectToDevice();
            device.TurnOnFlow();
        }
Exemple #2
0
        public void ConnectToDeviceTest()
        {
            ControlDevice device = new ControlDevice();

            Assert.IsTrue(device.ConnectToDevice());
            device.DisConnectFromDevice();
        }
Exemple #3
0
        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();
        }
Exemple #4
0
        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();
        }