public void SetUp() { _textView = EditorUtil.CreateView(); _localSettings = new LocalSettings(new GlobalSettings(), _textView); _incrementalSearch = VimUtil.CreateIncrementalSearch(_textView, _localSettings, new VimData()); _factory = new MockRepository(MockBehavior.Strict); _host = _factory.Create <IVimHost>(); _captureRaw = new MotionCapture( _host.Object, _textView, _incrementalSearch, _localSettings); _capture = _captureRaw; }
public MotionCaptureTest() { _textView = CreateTextView(); var vimTextBuffer = Vim.CreateVimTextBuffer(_textView.TextBuffer); var vimBufferData = CreateVimBufferData(vimTextBuffer, _textView); _incrementalSearch = new IncrementalSearch( vimBufferData, CommonOperationsFactory.GetCommonOperations(vimBufferData)); _localSettings = vimTextBuffer.LocalSettings; _captureRaw = new MotionCapture( vimBufferData, _incrementalSearch); _capture = _captureRaw; }
public MotionCaptureTest() { _textView = CreateTextView(); var vimTextBuffer = Vim.CreateVimTextBuffer(_textView.TextBuffer); var vimBufferData = CreateVimBufferData(vimTextBuffer, _textView); _incrementalSearch = new IncrementalSearch( vimBufferData, CommonOperationsFactory.GetCommonOperations(vimBufferData)); _localSettings = vimTextBuffer.LocalSettings; _captureRaw = new MotionCapture( vimBufferData, _incrementalSearch); _capture = _captureRaw; }
public static BindResult <Tuple <Motion, FSharpOption <int> > > GetMotionAndCount(this IMotionCapture capture, char c) { return(capture.GetMotionAndCount(KeyInputUtil.CharToKeyInput(c))); }
public void SetUp() { _textView = EditorUtil.CreateTextView(); _localSettings = new LocalSettings(new GlobalSettings(), EditorUtil.GetEditorOptions(_textView), _textView); _incrementalSearch = VimUtil.CreateIncrementalSearch(_textView, _localSettings, new VimData()); _factory = new MockRepository(MockBehavior.Strict); _host = _factory.Create<IVimHost>(); _captureRaw = new MotionCapture( _host.Object, _textView, _incrementalSearch, _localSettings); _capture = _captureRaw; }
public void Create() { _util = new Mock<IMotionUtil>(MockBehavior.Strict); _textView = Mock.MockObjectFactory.CreateTextView(); _captureRaw = new MotionCapture(_textView.Object, _util.Object); _capture = _captureRaw; }
public void Create() { _factory = new MockRepository(MockBehavior.Strict); _util = _factory.Create<ITextViewMotionUtil>(); _textView = MockObjectFactory.CreateTextView(factory: _factory); _host = _factory.Create<IVimHost>(); _data = _factory.Create<IMotionCaptureGlobalData>(MockBehavior.Loose); _captureRaw = new MotionCapture(_host.Object, _textView.Object, _util.Object, _data.Object); _capture = _captureRaw; }