public void Remap_OneToOne() { _keyMap.MapWithNoRemap("a", "l", KeyRemapMode.Normal); _textView.SetText("cat dog", 0); _vimBuffer.SwitchMode(ModeKind.Normal, ModeArgument.None); _vimBuffer.Process('a'); Assert.AreEqual(1, _textView.GetCaretPoint().Position); }
public void MapWithNoRemap_AlphaToAlpha() { Assert.IsTrue(_map.MapWithNoRemap("a", "b", KeyRemapMode.Normal)); var ret = _map.GetKeyMapping('a', KeyRemapMode.Normal).Single(); Assert.AreEqual(KeyInputUtil.CharToKeyInput('b'), ret); }