示例#1
0
        public void Test4A()
        {
            var k1 = new Input.MultiKeyGesture(Key.E, ModifierKeys.Alt | ModifierKeys.Control);
            var k2 = new Input.MultiKeyGesture(Key.E, ModifierKeys.Alt);

            Assert.IsFalse(k2.Equals(k1));
        }
示例#2
0
        public void Test3A()
        {
            var k1 = new Input.MultiKeyGesture(Key.E, ModifierKeys.Alt);
            var k2 = new Input.MultiKeyGesture(Key.E, ModifierKeys.Alt);

            Assert.IsTrue(k2.Equals(k1));
        }
示例#3
0
        public void Test2A()
        {
            var k1 = new Input.MultiKeyGesture(Key.F12);
            var k2 = new Input.MultiKeyGesture(Key.F11);

            Assert.IsFalse(k2.Equals(k1));
        }
示例#4
0
        public void Test1()
        {
            var k1 = new Input.MultiKeyGesture(Key.F11);
            var k2 = new Input.MultiKeyGesture(Key.F11);

            Assert.IsTrue(k1.Equals(k2));
        }
示例#5
0
        public void Test6A()
        {
            var ks2 = new KeySequence(Key.F11);

            var k1 = new Input.MultiKeyGesture(Key.Enter, ModifierKeys.Alt | ModifierKeys.Shift);
            var k2 = new Input.MultiKeyGesture(new List <KeySequence> {
                ks2, ks2
            });

            Assert.IsFalse(k2.Equals(k1));
        }
示例#6
0
        public void Test5A()
        {
            var ks1 = new KeySequence(Key.F11);
            var ks2 = new KeySequence(Key.F11);

            var k1 = new Input.MultiKeyGesture(new List <KeySequence> {
                ks1, ks1
            });
            var k2 = new Input.MultiKeyGesture(new List <KeySequence> {
                ks2, ks2
            });

            Assert.IsTrue(k2.Equals(k1));
        }
示例#7
0
        public void Test8A()
        {
            var ks11 = new KeySequence(ModifierKeys.Control, Key.A);
            var ks12 = new KeySequence(ModifierKeys.Control, Key.B);
            var ks21 = new KeySequence(ModifierKeys.Control, Key.C);
            var ks22 = new KeySequence(ModifierKeys.Control, Key.B);

            var k1 = new Input.MultiKeyGesture(new List <KeySequence> {
                ks11, ks12
            });
            var k2 = new Input.MultiKeyGesture(new List <KeySequence> {
                ks21, ks22
            });

            Assert.IsFalse(k2.Equals(k1));
        }