Пример #1
0
        public void Test_CalibrateWetToCurrentVoltageValueCommand_80Percent()
        {
            using (var helper = new CalibrateCommandTestHelper())
            {
                helper.Label  = "wet";
                helper.Letter = "W";
                helper.SimulatedVoltagePercentage = 80;

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

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

                helper.TestCalibrateCommand();
            }
        }
Пример #2
0
        public void Test_CalibrateDryToSpecifiedValueCommand_220()
        {
            using (var helper = new CalibrateCommandTestHelper())
            {
                helper.Label           = "dry";
                helper.Letter          = "D";
                helper.RawVoltageValue = 220;

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

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

                helper.TestCalibrateCommand();
            }
        }