Пример #1
0
        public void ProvideValue_WithModifierKey()
        {
            var e = new CustomKeyGestureExtension("Ctrl+A");
            var g = (KeyGesture)e.ProvideValue(null);

            Assert.AreEqual(Key.A, g.Key);
            Assert.AreEqual(ModifierKeys.Control, g.Modifiers);
        }
Пример #2
0
        public void ProvideValue_AlphanumericKeyWithoutModifier()
        {
            Assert.Inconclusive("Still todo");
            var e = new CustomKeyGestureExtension("A");
            var g = (KeyGesture)e.ProvideValue(null);

            Assert.AreEqual(Key.A, g.Key);
            Assert.AreEqual(ModifierKeys.None, g.Modifiers);
        }