Пример #1
0
 public void SwitchMode1()
 {
     Create("the quick brown fox");
     _textBuffer.Insert(1, "b");
     _vimBuffer.RaiseSwitchedMode((IMode)null);
     Assert.AreEqual(TextChange.NewInsert("b"), _lastChange);
 }
Пример #2
0
        public void SwitchMode1()
        {
            var mode = new Mock <INormalMode>();

            mode.SetupGet(x => x.ModeKind).Returns(ModeKind.Normal);
            _buffer.NormalModeImpl = mode.Object;
            _buffer.RaiseSwitchedMode(new SwitchModeEventArgs(FSharpOption <IMode> .None, _buffer.NormalModeImpl));
            Assert.AreEqual(String.Empty, _marginControl.StatusLine);
        }