public void InitialVisualHasNormalModeBackup() { foreach (var visualMode in VisualKind.All) { _modeMap.Reset((new UninitializedMode(_vimBuffer.VimTextBuffer))); _modeMap.SwitchMode(visualMode.VisualModeKind, ModeArgument.None); Assert.Equal(ModeKind.Normal, _modeMap.PreviousMode.Value.ModeKind); } }
public ModeMapTest() { _vimBuffer = CreateVimBuffer(); _modeMap = ((VimBuffer)_vimBuffer).ModeMap; _modeMap.Reset((new UninitializedMode(_vimBuffer.VimTextBuffer))); }