예제 #1
0
        public CommandModeTest()
        {
            _textView = CreateTextView();
            _textBuffer = _textView.TextBuffer;
            _vimBuffer = CreateVimBuffer(CreateVimBufferData(_textView));

            var factory = new MockRepository(MockBehavior.Strict);
            var commonOperations = CommonOperationsFactory.GetCommonOperations(_vimBuffer.VimBufferData);
            _modeRaw = new CommandMode(_vimBuffer, commonOperations);
            _mode = _modeRaw;
            _mode.OnEnter(ModeArgument.None);
        }
예제 #2
0
        public CommandModeTest()
        {
            _textView   = CreateTextView();
            _textBuffer = _textView.TextBuffer;
            _vimBuffer  = CreateVimBuffer(CreateVimBufferData(_textView));

            var factory          = new MockRepository(MockBehavior.Strict);
            var commonOperations = CommonOperationsFactory.GetCommonOperations(_vimBuffer.VimBufferData);

            _modeRaw = new CommandMode(_vimBuffer, commonOperations);
            _mode    = _modeRaw;
            _mode.OnEnter(ModeArgument.None);
        }
예제 #3
0
 public void StatusOnColon1()
 {
     _mode.OnEnter(ModeArgument.None);
     Assert.Equal("", _mode.Command);
 }