Exemple #1
0
 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);
     }
 }
Exemple #2
0
 public ModeMapTest()
 {
     _vimBuffer = CreateVimBuffer();
     _modeMap   = ((VimBuffer)_vimBuffer).ModeMap;
     _modeMap.Reset((new UninitializedMode(_vimBuffer.VimTextBuffer)));
 }