Esempio n. 1
0
 public void TearDown()
 {
     _statusBar = null;
     _dte = null;
     _host = null;
     _hostRaw = null;
 }
Esempio n. 2
0
        private void Create()
        {
            _undoManagerProvider = new Mock<ITextBufferUndoManagerProvider>(MockBehavior.Strict);
            _editorAdaptersFactoryService = new Mock<IVsEditorAdaptersFactoryService>(MockBehavior.Strict);
            _statusBar = new Mock<StatusBar>(MockBehavior.Strict);
            _dte = new Mock<_DTE>(MockBehavior.Strict);
            _dte.SetupGet(x => x.StatusBar).Returns(_statusBar.Object);
            _textManager = new Mock<IVsTextManager>(MockBehavior.Strict);

            var sp = new Mock<SVsServiceProvider>(MockBehavior.Strict);
            sp.Setup(x => x.GetService(typeof(SVsTextManager))).Returns(_textManager.Object);
            sp.Setup(x => x.GetService(typeof(_DTE))).Returns(_dte.Object);
            _hostRaw = new VsVimHost(_undoManagerProvider.Object, _editorAdaptersFactoryService.Object, sp.Object);
            _host = _hostRaw;
        }
Esempio n. 3
0
 private void Create()
 {
     _undoManagerProvider = new Mock<ITextBufferUndoManagerProvider>(MockBehavior.Strict);
     _editorAdaptersFactoryService = new Mock<IVsEditorAdaptersFactoryService>(MockBehavior.Strict);
     _hostRaw = new VsVimHost(_undoManagerProvider.Object, _editorAdaptersFactoryService.Object);
     _host = _hostRaw;
 }