Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }