public void TestConstructor1() { var group = 0; var mask = 1; var isOn = true; var switchPanelKey = new SwitchPanelKey(group, mask, isOn, SwitchPanelPZ55Keys.KNOB_ENGINE_BOTH); Assert.IsNotNull(switchPanelKey); }
public void TestGetSetterIsOn() { var group = 0; var mask = 1; var isOn = true; var isOnSet = false; var switchPanelKey = new SwitchPanelKey(group, mask, isOn, SwitchPanelPZ55Keys.KNOB_ENGINE_BOTH); switchPanelKey.IsOn = isOnSet; Assert.AreEqual(isOnSet, switchPanelKey.IsOn); }
public void TestGetSetterGroup() { var group = 0; var groupSet = 4; var mask = 1; var isOn = true; var switchPanelKey = new SwitchPanelKey(group, mask, isOn, SwitchPanelPZ55Keys.KNOB_ENGINE_BOTH); switchPanelKey.Group = groupSet; Assert.AreEqual(groupSet, switchPanelKey.Group); }
public void TestGetSwitchkeys() { var switchkeys = SwitchPanelKey.GetPanelSwitchKeys(); Assert.AreNotEqual(0, switchkeys.Count); }