1 write to HostDocument
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
RenameTracking\RenameTrackingTestState.cs (1)
82HostDocument = Workspace.Documents.First();
20 references to HostDocument
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (20)
RenameTracking\RenameTrackingTaggerProviderTests.cs (16)
381var textSpan = state.HostDocument.SelectedSpans.Single(); 395var textSpan = state.HostDocument.SelectedSpans.Single(); 409var textSpan = state.HostDocument.SelectedSpans.Single(); 429var textSpan = state.HostDocument.SelectedSpans.Single(); 640Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 663Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 686Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 709Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 737Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 771Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 804Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 853var textSpan = state.HostDocument.SelectedSpans.Single(); 1036Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 1067Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 1106Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); 1538Assert.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()); 170var document = this.Workspace.CurrentSolution.GetDocument(HostDocument.Id);