public EditorToSettingSynchronizerTest() { _synchronizer = new EditorToSettingSynchronizer(); var textView = CreateTextView(); var globalSettings = new GlobalSettings(); _localSettings = new LocalSettings(globalSettings); _windowSettings = new WindowSettings(globalSettings); _editorOptions = textView.Options; var vim = new Mock <IVim>(MockBehavior.Strict); vim.SetupGet(x => x.VimHost).Returns(VimHost); _vimBuffer = new Mock <IVimBuffer>(MockBehavior.Strict); _vimBuffer.SetupGet(x => x.LocalSettings).Returns(_localSettings); _vimBuffer.SetupGet(x => x.WindowSettings).Returns(_windowSettings); _vimBuffer.SetupGet(x => x.TextView).Returns(textView); _vimBuffer.SetupGet(x => x.Vim).Returns(vim.Object); _vimTextBuffer = new Mock <IVimTextBuffer>(MockBehavior.Strict); _vimTextBuffer.Setup(x => x.CheckModeLine()).Returns(Tuple.Create(FSharpOption <string> .None, FSharpOption <string> .None)); _vimBuffer.SetupGet(x => x.Vim).Returns(vim.Object); _vimBuffer.SetupGet(x => x.VimTextBuffer).Returns(_vimTextBuffer.Object); }
public void Setup() { _synchronizer = new EditorToSettingSynchronizer(EditorUtil.FactoryService.Vim); _buffer = EditorUtil.FactoryService.Vim.CreateBuffer(EditorUtil.CreateTextView("")); _localSettings = _buffer.LocalSettings; _globalSettings = _localSettings.GlobalSettings; _editorOptions = _localSettings.EditorOptions.Value; }
public EditorToSettingSynchronizerTest() { _synchronizer = new EditorToSettingSynchronizer(EditorOptionsFactoryService, Vim); _buffer = CreateVimBuffer(""); _localSettings = _buffer.LocalSettings; _globalSettings = _localSettings.GlobalSettings; _editorOptions = _buffer.TextView.Options; }
public void Setup() { _synchronizer = new EditorToSettingSynchronizer(EditorUtil.FactoryService.EditorOptionsFactory, EditorUtil.FactoryService.Vim); var textView = EditorUtil.CreateTextView(""); _buffer = EditorUtil.FactoryService.Vim.CreateVimBuffer(textView); _localSettings = _buffer.LocalSettings; _globalSettings = _localSettings.GlobalSettings; _editorOptions = EditorUtil.FactoryService.EditorOptionsFactory.GetOptions(textView); }
public EditorToSettingSynchronizerTest() { _synchronizer = new EditorToSettingSynchronizer(); var textView = CreateTextView(); var globalSettings = new GlobalSettings(); _localSettings = new LocalSettings(globalSettings); _windowSettings = new WindowSettings(globalSettings); _editorOptions = textView.Options; _vimBuffer = new Mock<IVimBuffer>(MockBehavior.Strict); _vimBuffer.SetupGet(x => x.LocalSettings).Returns(_localSettings); _vimBuffer.SetupGet(x => x.WindowSettings).Returns(_windowSettings); _vimBuffer.SetupGet(x => x.TextView).Returns(textView); }
public EditorToSettingSynchronizerTest() { _synchronizer = new EditorToSettingSynchronizer(); var textView = CreateTextView(); var globalSettings = new GlobalSettings(); _localSettings = new LocalSettings(globalSettings); _windowSettings = new WindowSettings(globalSettings); _editorOptions = textView.Options; _vimBuffer = new Mock <IVimBuffer>(MockBehavior.Strict); _vimBuffer.SetupGet(x => x.LocalSettings).Returns(_localSettings); _vimBuffer.SetupGet(x => x.WindowSettings).Returns(_windowSettings); _vimBuffer.SetupGet(x => x.TextView).Returns(textView); }