示例#1
0
        public void SetAll()
        {
            peripherals.SetAll(new ColorCycleGvLedSetting(1, 10));

            foreach (GVLED_CFG ledSetting in mock.Settings)
            {
                GvLedSettingTests.AssertGVLedStructEqual(SettingStructs.ColorCycleA, ledSetting);
            }
        }
示例#2
0
        public void SetStaticTwoVGA()
        {
            mock.Devices = new int[] { (int)DeviceType.VGA, (int)DeviceType.VGA };

            peripherals.LedSettings[0] = new StaticGvLedSetting(Color.Red, 5);
            peripherals.LedSettings[1] = new StaticGvLedSetting(Color.Purple, 10);

            GvLedSettingTests.AssertGVLedStructEqual(SettingStructs.StaticRed, mock.Settings[0].Value);
            GvLedSettingTests.AssertGVLedStructEqual(SettingStructs.StaticPurple, mock.Settings[1].Value);
        }
示例#3
0
        public void SetAllTwoVGA()
        {
            mock.Devices = new int[] { (int)DeviceType.VGA, (int)DeviceType.VGA };
            peripherals.SetAll(new ColorCycleGvLedSetting(1, 10));

            foreach (GVLED_CFG ledSetting in mock.Settings)
            {
                GvLedSettingTests.AssertGVLedStructEqual(SettingStructs.ColorCycleA, ledSetting);
            }
        }