Exemple #1
0
 public AdhocOutlinerTest()
 {
     _textBuffer  = CreateTextBuffer();
     _outlinerRaw = new AdhocOutliner(_textBuffer);
     _outliner    = _outlinerRaw;
     _textBuffer.Properties.AddProperty(AdhocOutliner.OutlinerTaggerKey, null);
 }
Exemple #2
0
 private void Create(params string[] lines)
 {
     _textView          = EditorUtil.CreateTextView(lines);
     _visualBuffer      = _textView.TextViewModel.VisualBuffer;
     _adhocOutliner     = EditorUtil.FactoryService.AdhocOutlinerFactory.GetAdhocOutliner(_textView.TextBuffer);
     _outliningeManager = EditorUtil.FactoryService.OutliningManagerService.GetOutliningManager(_textView);
     _statusUtil        = new Mock <IStatusUtil>(MockBehavior.Strict);
     _foldData          = EditorUtil.FactoryService.FoldManagerFactory.GetFoldData(_textView.TextBuffer);
     _foldManagerRaw    = new FoldManager(
         _textView,
         _foldData,
         _statusUtil.Object,
         FSharpOption.Create(EditorUtil.FactoryService.OutliningManagerService.GetOutliningManager(_textView)));
     _foldManager = _foldManagerRaw;
 }
Exemple #3
0
 private void Create(params string[] lines)
 {
     _textView = CreateTextView(lines);
     _textBuffer = _textView.TextBuffer;
     _visualBuffer = _textView.TextViewModel.VisualBuffer;
     _adhocOutliner = EditorUtilsFactory.GetOrCreateOutliner(_textView.TextBuffer);
     _outliningeManager = OutliningManagerService.GetOutliningManager(_textView);
     _statusUtil = new Mock<IStatusUtil>(MockBehavior.Strict);
     _foldData = FoldManagerFactory.GetFoldData(_textView.TextBuffer);
     _foldManagerRaw = new FoldManager(
         _textView,
         _foldData,
         _statusUtil.Object,
         FSharpOption.Create(OutliningManagerService.GetOutliningManager(_textView)));
     _foldManager = _foldManagerRaw;
 }