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