Ejemplo n.º 1
0
        public void Test_SwitchOff()
        {
            using (var helper = new SwitchTestHelper())
            {
                helper.SwitchCommand = SwitchStatus.Off;

                helper.DevicePort     = GetDevicePort();
                helper.DeviceBaudRate = GetDeviceSerialBaudRate();

                helper.SimulatorPort     = GetSimulatorPort();
                helper.SimulatorBaudRate = GetSimulatorSerialBaudRate();

                helper.TestSwitch();
            }
        }
Ejemplo n.º 2
0
        public void Test_SwitchAuto_WaterNotNeeded()
        {
            using (var helper = new SwitchTestHelper())
            {
                helper.SwitchCommand = SwitchStatus.Auto;
                helper.SimulatedVoltagePercentage = 80;

                helper.DevicePort     = GetDevicePort();
                helper.DeviceBaudRate = GetDeviceSerialBaudRate();

                helper.SimulatorPort     = GetSimulatorPort();
                helper.SimulatorBaudRate = GetSimulatorSerialBaudRate();

                helper.TestSwitch();
            }
        }