Beispiel #1
0
        public void GetKeyMappingResultFromMultiple2()
        {
            IKeyMap map = new KeyMap();
            map.MapWithNoRemap("aa", "b", KeyRemapMode.Normal);

            var input = "a".Select(InputUtil.CharToKeyInput);
            var res = map.GetKeyMappingResultFromMultiple(input, KeyRemapMode.Normal);
            Assert.IsTrue(res.IsMappingNeedsMoreInput);
        }
Beispiel #2
0
        public void GetKeyMappingResultFromMultiple1()
        {
            IKeyMap map = new KeyMap();
            map.MapWithNoRemap("aa", "b", KeyRemapMode.Normal);

            var input = "aa".Select(InputUtil.CharToKeyInput);
            var res = map.GetKeyMappingResultFromMultiple(input, KeyRemapMode.Normal);
            Assert.IsTrue(res.IsSingleKey);
            Assert.AreEqual('b', res.AsSingleKey().Item.Char);
        }