1 write to HostDocument
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
RenameTracking\RenameTrackingTestState.cs (1)
82
HostDocument
= Workspace.Documents.First();
20 references to HostDocument
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (20)
RenameTracking\RenameTrackingTaggerProviderTests.cs (16)
381
var textSpan = state.
HostDocument
.SelectedSpans.Single();
395
var textSpan = state.
HostDocument
.SelectedSpans.Single();
409
var textSpan = state.
HostDocument
.SelectedSpans.Single();
429
var textSpan = state.
HostDocument
.SelectedSpans.Single();
640
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
663
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
686
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
709
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
737
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
771
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
804
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
853
var textSpan = state.
HostDocument
.SelectedSpans.Single();
1036
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
1067
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
1106
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
1538
Assert.Equal(expectedCode, state.
HostDocument
.GetTextBuffer().CurrentSnapshot.GetText());
RenameTracking\RenameTrackingTestState.cs (4)
83
_view =
HostDocument
.GetTextView();
84
_view.Caret.MoveTo(new SnapshotPoint(_view.TextSnapshot,
HostDocument
.CursorPosition.Value));
105
_tagger = tracker.CreateTagger<RenameTrackingTag>(
HostDocument
.GetTextBuffer());
170
var document = this.Workspace.CurrentSolution.GetDocument(
HostDocument
.Id);