Example #1
0
        public void Test_CalibrateDarkToSpecifiedValueCommand_200()
        {
            using (var helper = new CalibrateCommandTestHelper()) {
                helper.Label         = "dark";
                helper.Key           = "D";
                helper.RawLightValue = 200;

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

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

                helper.TestCalibrateCommand();
            }
        }
        public void Test_CalibrateBrightToSpecifiedValueCommand_900()
        {
            using (var helper = new CalibrateCommandTestHelper()) {
                helper.Label         = "bright";
                helper.Letter        = "B";
                helper.RawLightValue = 900;

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

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

                helper.TestCalibrateCommand();
            }
        }