protected virtual void Create(params string[] lines) { _textView = CreateTextView(lines); _textBuffer = _textView.TextBuffer; _source = new CharDisplayTaggerSource(_textView, new Mock <IEditorFormatMap>(MockBehavior.Loose).Object, Vim.GlobalSettings); _basicTaggerSource = _source; }
protected virtual void Create(params string[] lines) { _textView = CreateTextView(lines); _textBuffer = _textView.TextBuffer; _source = new CharDisplayTaggerSource(_textView, new Mock<IEditorFormatMap>(MockBehavior.Loose).Object, Vim.GlobalSettings); _basicTaggerSource = _source; }
protected virtual void Create(params string[] lines) { _textView = CreateTextView(lines); _textBuffer = _textView.TextBuffer; _controlCharUtil = new ControlCharUtil(); _classificationFormatMap = new Mock <IClassificationFormatMap>(MockBehavior.Strict); var typeface = SystemFonts.CaptionFontFamily.GetTypefaces().First(); var textFormattingProperties = TextFormattingRunProperties.CreateTextFormattingRunProperties(typeface, 10.0, Colors.Black); _classificationFormatMap.SetupGet(x => x.DefaultTextProperties).Returns(textFormattingProperties); _source = new CharDisplayTaggerSource( _textView, new Mock <IEditorFormatMap>(MockBehavior.Loose).Object, _controlCharUtil, _classificationFormatMap.Object); _basicTaggerSource = _source; }