コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public void TestGetSwitchkeys()
        {
            var switchkeys = SwitchPanelKey.GetPanelSwitchKeys();

            Assert.AreNotEqual(0, switchkeys.Count);
        }