51 references to GetTextView
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (29)
ChangeSignature\RemoveParametersTests.cs (2)
380workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList(); 382var textView = workspace.Documents.Single().GetTextView();
Classification\TotalClassifierTests.cs (1)
3065using var tagger = provider.CreateTagger(document.GetTextView(), buffer);
CommentSelection\CSharpCommentSelectionTests.cs (2)
132SetupSelection(doc.GetTextView(), doc.SelectedSpans.Select(s => Span.FromBounds(s.Start, s.End))); 139var textView = doc.GetTextView();
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (3)
2479var textView = testDocument.GetTextView(); 2732var textView = testDocument.GetTextView(); 2787var textView = testDocument.GetTextView();
EncapsulateField\EncapsulateFieldCommandHandlerTests.cs (2)
207workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList(); 209var textView = workspace.Documents.Single().GetTextView();
EncapsulateField\EncapsulateFieldTestState.cs (1)
57var args = new EncapsulateFieldCommandArgs(_testDocument.GetTextView(), _testDocument.GetTextBuffer());
ExtractInterface\ExtractInterfaceTests.cs (2)
1454workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id)!.GetTextView()).ToList(); 1456var textView = workspace.Documents.Single().GetTextView();
ExtractMethod\ExtractMethodTests.cs (2)
11239workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList(); 11241var textView = workspace.Documents.Single().GetTextView();
ExtractMethod\MiscTests.cs (1)
132var view = testDocument.GetTextView();
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandlerTests.cs (5)
29var view = document.GetTextView(); 36var view = workspace.Documents.Single().GetTextView(); 62var view = workspace.Documents.Single().GetTextView(); 80var originalView = workspace.Documents.Single().GetTextView(); 85var view = workspace.Documents.Single().GetTextView();
Formatting\FormattingEngineTests.cs (1)
2921var textView = subjectDocument.GetTextView();
Formatting\Indentation\SmartIndenterTests.cs (2)
3472var textView = projectedDocument.GetTextView(); 3545var wpfTextView = workspace.Documents.First().GetTextView();
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
3382commandHandler.ExecuteCommand(new TypeCharCommandArgs(subjectDocument.GetTextView(), textBuffer, typedChar[0]), () => { }, TestCommandExecutionContext.Create());
Organizing\OrganizeTypeDeclarationTests.cs (2)
1180workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList(); 1182var textView = workspace.Documents.Single().GetTextView();
SplitStringLiteral\SplitStringLiteralCommandHandlerTests.cs (1)
62var view = document.GetTextView();
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (1)
182textView = document.GetTextView();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (13)
AbstractCommandHandlerTestState.cs (1)
78_textView = cursorDocument.GetTextView();
AbstractTypingCommandHandlerTest.cs (1)
34var view = testDocument.GetTextView();
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
154var textView = document.GetTextView();
AutomaticCompletion\AbstractAutomaticLineEnderTests.cs (1)
75var view = workspace.Documents.Single().GetTextView();
CommentSelection\AbstractToggleCommentTestBase.cs (4)
38SetupSelection(doc.GetTextView(), doc.SelectedSpans.Select(s => Span.FromBounds(s.Start, s.End))); 41var textView = doc.GetTextView(); 55SetupSelection(document.GetTextView(), document.SelectedSpans.Select(s => Span.FromBounds(s.Start, s.End))); 58var textView = document.GetTextView();
CompleteStatement\AbstractCompleteStatementTests.cs (1)
106var view = testDocument.GetTextView();
DocumentationComments\AbstractDocumentationCommentTests.cs (1)
138var view = testDocument.GetTextView();
DocumentationComments\AbstractXmlTagCompletionTests.cs (1)
31var view = testDocument.GetTextView();
Formatting\CoreFormatterTestsBase.cs (2)
138var view = testDocument.GetTextView(); 245var view = testDocument.GetTextView();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
FindReferences\FindReferencesCommandHandlerTests.cs (1)
72var textView = workspace.Documents[0].GetTextView();
RenameTracking\RenameTrackingTestState.cs (1)
83_view = HostDocument.GetTextView();
Structure\StructureTaggerTests.cs (1)
399var view = hostdoc.GetTextView();
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
AbstractTextViewFilterTests.vb (2)
254document.GetTextView(), 276document.GetTextView(),
ClassView\SyncClassViewTests.vb (1)
874Dim textView = hostDocument.GetTextView()
Snippets\CSharpSnippetExpansionClientTests.vb (1)
340surfaceBufferDocument.GetTextView(),
Snippets\SnippetExpansionClientTestsHelper.vb (1)
103Assert.Equal(expectedVirtualSpacing, document.GetTextView().Caret.Position.VirtualSpaces)
Snippets\VisualBasicSnippetExpansionClientTests.vb (1)
436surfaceBufferDocument.GetTextView(),