public void SetAll() { peripherals.SetAll(new ColorCycleGvLedSetting(1, 10)); foreach (GVLED_CFG ledSetting in mock.Settings) { GvLedSettingTests.AssertGVLedStructEqual(SettingStructs.ColorCycleA, ledSetting); } }
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); }
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); } }