protected void Create(params string[] lines) { _textBuffer = EditorHost.CreateTextBuffer(lines); _asyncTaggerSource = new TestableAsyncTaggerSource(_textBuffer); _asyncTagger = new AsyncTagger <string, TextMarkerTag>(_asyncTaggerSource); _asyncTaggerInterface = _asyncTagger; }
private void Create(params string[] lines) { _textBuffer = CreateTextBuffer(lines); // Setup a sychronization context we can control _synchronizationContext = new TestableSynchronizationContext(); _synchronizationContext.Install(); _asyncTaggerSource = new TestableAsyncTaggerSource(_textBuffer); _asyncTagger = new AsyncTagger <string, TextMarkerTag>(_asyncTaggerSource); _asyncTaggerInterface = _asyncTagger; }