Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public void StatusOnColon1()
 {
     _mode.OnEnter(ModeArgument.None);
     Assert.Equal("", _mode.Command);
 }