231 references to GetTextAsync
IdeCoreBenchmarks (1)
ClassificationBenchmarks.cs (1)
99var text = document.GetTextAsync().Result.ToString();
Microsoft.Analyzers.Extra.Tests (7)
Resources\RoslynTestUtils.cs (7)
379var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 387var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 394var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 470var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 478var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 485var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 506var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Analyzers.Local.Tests (7)
Resources\RoslynTestUtils.cs (7)
380var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 388var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 395var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 471var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 479var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 486var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 507var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
40var sourceText = await updatedDocument.GetTextAsync();
Microsoft.AspNetCore.App.Analyzers.Test (1)
TestDiagnosticAnalyzer.cs (1)
50var originalText = await doc.GetTextAsync().ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
20return new ValueTask<SourceText>(document.GetTextAsync(cancellationToken));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
56var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (2)
57var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 149var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
286var newText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (26)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (4)
189var actualText = (await modifiedOriginalDocument.GetTextAsync()).ToString(); 197var oldRefText = (await oldSolution.GetDocument(refDocumentId).GetTextAsync()).ToString(); 198var newRefText = (await newSolution.GetDocument(refDocumentId).GetTextAsync()).ToString(); 205var actualRefText = (await newSolution.GetDocument(refDocumentId).GetTextAsync()).ToString();
Completion\CompletionServiceTests.cs (1)
139var text = await document.GetTextAsync();
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (5)
65await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length)); 93await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 175await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, sourceDocument, new TextSpan(0, sourceDocument.GetTextAsync().Result.Length)); 205var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length)); 261var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length));
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (3)
67var sourcetext = await analyzerConfigDocument.GetTextAsync(default); 76var sourcetext = await analyzerConfigDocument.GetTextAsync(default); 365var text = await editorconfig.GetTextAsync();
Formatting\RazorLineFormattingOptionsTests.cs (1)
73var formattedText = await formattedDocument.GetTextAsync();
Workspaces\WorkspaceTests_EditorFeatures.cs (12)
514var docZText = await docZ.GetTextAsync(); 574var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 645var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 667var hasX = (await doc1Z.GetTextAsync()).ToString().Contains("X"); 729Assert.Equal(startText, (await workspace.CurrentSolution.GetDocument(document.Id).GetTextAsync()).ToString()); 736Assert.Equal(startText, (await workspace.CurrentSolution.GetDocument(document.Id).GetTextAsync()).ToString()); 1064Assert.Equal("some text", (await additionalDocument.GetTextAsync()).ToString()); 1088Assert.Equal("root = true", (await analyzerConfigDocument.GetTextAsync()).ToString()); 1430Assert.Equal(originalText, (await eventArgs[0].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1431Assert.Equal(originalText, (await eventArgs[1].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1433Assert.Equal(updatedText, (await eventArgs[0].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1434Assert.Equal(updatedText, (await eventArgs[1].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString());
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
56var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (2)
57var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 149var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
304var oldText = await oldDocument.GetTextAsync(); 309var newText = await newDocument.GetTextAsync();
Microsoft.CodeAnalysis.EditorFeatures (1)
Navigation\IDocumentNavigationServiceExtensions.cs (1)
85var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (12)
BraceHighlighting\MultiCharacterBraceHighlightingTests.cs (1)
34var text = (await document.GetTextAsync(cancellationToken)).ToString();
BracePairs\AbstractBracePairsTests.cs (1)
33var text = await document.GetTextAsync();
Completion\AbstractCompletionProviderTests.cs (3)
149var code = (await document.GetTextAsync()).ToString(); 511var text = await document.GetTextAsync(); 599var text = await document.GetTextAsync();
ExtractInterface\AbstractExtractInterfaceTests.cs (1)
163var updatedCode = (await updatedDocument.GetTextAsync()).ToString();
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
654return await document.GetTextAsync(CancellationToken.None).ConfigureAwait(false);
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (1)
34var text = await document.GetTextAsync();
ReassignedVariable\AbstractReassignedVariableTests.cs (1)
33var text = await document.GetTextAsync();
Rename\RenamerTests.cs (1)
101AssertEx.EqualOrDiff(endDocument.Text, (await updatedDocument.GetTextAsync()).ToString());
SignatureHelp\AbstractSignatureHelpProviderTests.cs (2)
354var code = (await document.GetTextAsync()).ToString(); 470var code = (await document.GetTextAsync()).ToString();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (13)
CodeFixes\CodeFixServiceTests.cs (2)
948var text = await document.GetTextAsync(ct).ConfigureAwait(false); 1155var text = await sourceDocument.GetTextAsync();
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
245var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
469var text = await additionalDoc.GetTextAsync(); 634var text = await document.GetTextAsync(); 671text = await document.GetTextAsync();
Diagnostics\DiagnosticDataTests.cs (1)
128var text = await document.GetTextAsync();
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
260var document1 = await solution.GetDocument(documentId).GetTextAsync();
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (2)
104var sourceText = await linkedDocument.GetTextAsync(); 108.WithDocumentText(document.Id, (await document.GetTextAsync()).Replace(textString.IndexOf("public"), "public".Length, "internal"))
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
60var text = await document.GetTextAsync();
Preview\PreviewWorkspaceTests.cs (1)
82Assert.Equal(previewWorkspace.CurrentSolution.Projects.First().Documents.First().GetTextAsync().Result.ToString(), text);
TextEditor\TryGetDocumentTests.cs (1)
42var newSourceText = newDocument.GetTextAsync().Result;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (7)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
116Dim actual = (Await updatedDocument.GetTextAsync()).ToString().Trim()
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
58Dim actual = updatedDocument.GetTextAsync().Result.ToString().Trim()
InlineHints\AbstractInlineHintsTests.vb (2)
69Dim value = Await document.GetTextAsync().ConfigureAwait(False) 71Dim expectedText = Await expectedDocument.GetTextAsync().ConfigureAwait(False)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
670Dim text = Await document.GetTextAsync(cancellationToken).ConfigureAwait(False)
Simplification\AbstractSimplificationTests.vb (1)
129Dim actualText = (Await simplifiedDocument.GetTextAsync()).ToString()
Simplification\ParameterSimplificationTests.vb (1)
31Assert.Equal(expected, (Await simplifiedDocument.GetTextAsync()).ToString())
Microsoft.CodeAnalysis.Features (1)
Navigation\IDefinitionLocationService.cs (1)
61var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
Diagnostics\TestDiagnosticAnalyzerDriver.cs (1)
50var text = await document.GetTextAsync().ConfigureAwait(false);
Snippets\AbstractSnippetProviderTests.cs (1)
63var documentSourceText = await document.GetTextAsync();
Microsoft.CodeAnalysis.LanguageServer (1)
Testing\TestDiscoverer.cs (1)
81var text = await document.GetTextAsync(cancellationToken);
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
ExternalAccess\Razor\SimplifyMethodHandler.cs (1)
54var originalSourceText = await originalDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Completion\CompletionResultFactory.cs (3)
529var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 655var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 680var documentText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\MapCode\MapCodeHandler.cs (2)
109var oldText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 121var focusText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Rename\PrepareRenameHandler.cs (1)
40var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SourceGenerators\SourceGeneratedDocumentGetTextHandler.cs (1)
43var text = document != null ? await document.GetTextAsync(cancellationToken).ConfigureAwait(false) : null;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (11)
Completion\CompletionFeaturesTests.cs (2)
597var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); 890var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
223var sourceText = await document.GetTextAsync();
InlayHint\AbstractInlayHintTests.cs (1)
27var text = await document.GetTextAsync(CancellationToken.None);
MapCode\MapCodeTests.cs (1)
37var text = await document.GetTextAsync(cancellationToken);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (2)
72var miscWorkspaceText = await GetMiscellaneousDocument(testLspServer)!.GetTextAsync(CancellationToken.None); 83miscWorkspaceText = await GetMiscellaneousDocument(testLspServer)!.GetTextAsync(CancellationToken.None);
SemanticTokens\AbstractSemanticTokensTests.cs (1)
65var text = await document.GetTextAsync().ConfigureAwait(false);
SpellCheck\SpellCheckTests.cs (1)
650var sourceText = await document.GetTextAsync();
Workspaces\LspWorkspaceManagerTests.cs (2)
749Assert.Equal(generatorText, (await sourceGeneratedDocument.GetTextAsync(CancellationToken.None)).ToString()); 760Assert.Equal(openText, (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
27var text = await document.GetTextAsync(ct).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
474Dim newText = Await newDocument.GetTextAsync()
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (10)
CaseCorrection\VisualBasicCaseCorrectionTestBase.vb (1)
20Dim actual = Await newNode.GetTextAsync()
CodeGeneration\AddImportsTests.vb (2)
102Dim actualText = (Await formatted.GetTextAsync()).ToString() 109Dim actualText = (Await formatted.GetTextAsync()).ToString()
Formatting\FormattingTests.vb (4)
3022AssertResult(inputOutput, Await document.GetTextAsync(), result) 3024Dim document2 = document.WithText((Await document.GetTextAsync()).WithChanges(result)) 3029AssertResult(inputOutput, Await document2.GetTextAsync(), result2) 4211Dim actual = (Await document.GetTextAsync()).ToString()
Formatting\VisualBasicFormattingTestBase.vb (3)
68AssertResult(expected, Await document.GetTextAsync(), changes) 71AssertResult(expected, Await document.GetTextAsync(), changes) 77AssertResult(expected, Await document.GetTextAsync(), changes)
Microsoft.CodeAnalysis.Workspaces (1)
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
57.SelectAsArrayAsync(async documentId => (documentId, await cleanedSolution.GetRequiredDocument(documentId).GetTextAsync(cancellationToken).ConfigureAwait(false)))
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (25)
VisualStudioMSBuildWorkspaceTests.cs (25)
958var getTextTask = doc.GetTextAsync(); 990var text = await doc.GetTextAsync(); 2023var text2 = await document2.GetTextAsync(); 2055var originalText = await document.GetTextAsync(); 2066var text2 = await document2.GetTextAsync(); 2074var text = await document.GetTextAsync(); 2089var originalText = await document.GetTextAsync(); 2102var text = await document.GetTextAsync(); 2116var text = await document.GetTextAsync(); 2125var text2 = await document2.GetTextAsync(); 2143var text = await document.GetTextAsync(); 2152var text2 = await document2.GetTextAsync(); 2178var text2 = await document2.GetTextAsync(); 2239var text = await doc.GetTextAsync(); 2269var text = await doc.GetTextAsync(); 2353var text = await doc.GetTextAsync(); 2794var text = await document.GetTextAsync(); 2813var text = await document.GetTextAsync(); 2832var text = await document.GetTextAsync(); 2885var doc2text = await doc2.GetTextAsync(); 2892var text = await document.GetTextAsync(); 2898var doc3text = await doc3.GetTextAsync(); 2908var noEncodingDocText = await noEncodingDoc.GetTextAsync(); 3246var text = await analyzerConfigDocument.GetTextAsync(); 3309var text = await document.GetTextAsync();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
58await AssertFormatAsync(workspace.Services.SolutionServices, expected, root, spans.AsImmutable(), formattingOptions, await document.GetTextAsync());
Microsoft.CodeAnalysis.Workspaces.UnitTests (40)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
42var text = (await gooDoc.GetTextAsync()).ToString();
Formatter\FormatterTests.cs (1)
58var formattedText = await formattedDocument.GetTextAsync();
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
53AssertEx.EqualOrDiff(expectedMergedText, mergedSolution.GetDocument(documentIds[i]).GetTextAsync().Result.ToString());
SolutionTests\ProjectSemanticVersionTests.cs (16)
43var text = await document.GetTextAsync(); 57var text = await document.GetTextAsync(); 71var text = await document.GetTextAsync(); 85var text = await document.GetTextAsync(); 99var text = await document.GetTextAsync(); 113var text = await document.GetTextAsync(); 127var text = await document.GetTextAsync(); 141var text = await document.GetTextAsync(); 155var text = await document.GetTextAsync(); 169var text = await document.GetTextAsync(); 183var text = await document.GetTextAsync(); 197var text = await document.GetTextAsync(); 211var text = await document.GetTextAsync(); 225var text = await document.GetTextAsync(); 239var text = await document.GetTextAsync(); 253var text = await document.GetTextAsync();
SolutionTests\SolutionTests.cs (13)
1652Assert.Equal(expectedAlgorithm, (await document.GetTextAsync(default)).ChecksumAlgorithm); 3169var newText = solution2.GetDocument(documentId).GetTextAsync().Result.ToString(); 3314var observedText2 = sol.GetDocument(did).GetTextAsync().Result; 3332var docText = doc.GetTextAsync().Result; 3354var docText = doc.GetTextAsync().Result; 3379var docText = doc.GetTextAsync().Result; 3527var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 3558var observedText = solution.GetDocument(documentId).GetTextAsync().Result; 3916var text = await doc.GetTextAsync().ConfigureAwait(false); 3993Assert.Equal(Encoding.UTF32, doc.GetTextAsync().Result.Encoding); 4000Assert.Equal(Encoding.UTF32, newDoc.GetTextAsync().Result.Encoding); 5442var newDocText = await newDoc.GetTextAsync(); 5443var sameText = await newDoc.GetTextAsync();
SolutionTests\SolutionWithSourceGeneratorTests.cs (5)
565var existingText = await project.Documents.Single().GetTextAsync(); 600Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 648Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 816.AddDocument(originalDocument1.Name, await originalDocument1.GetTextAsync().ConfigureAwait(false), filePath: originalDocument1.FilePath); 889Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
WorkspaceTests\AdhocWorkspaceTests.cs (3)
76Assert.Equal(source, (await doc.GetTextAsync()).ToString()); 338currentText = await doc.GetTextAsync(); 366var actualText = await newDoc.GetTextAsync();
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.Logging.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.Metrics.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.MetricsReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 520var s = await proj.FindDocument($"src-{i}.cs").GetTextAsync().ConfigureAwait(false); 527var s = await proj.FindDocument(extraFile).GetTextAsync().ConfigureAwait(false); 548var newText = await document.GetTextAsync().ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
372var query = await queryDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
CodeModel\FileCodeFunctionTests.cs (2)
495var text = await (GetCurrentDocument()).GetTextAsync(); 508var text = await (GetCurrentDocument()).GetTextAsync();
Microsoft.VisualStudio.LanguageServices.UnitTests (17)
Preview\PreviewChangesTests.vb (12)
41Dim text = document.GetTextAsync().Result 94Dim text = document.GetTextAsync().Result 136Dim text = document.GetTextAsync().Result 159Dim finalText = previewEngine.FinalSolution.GetDocument(documentId).GetTextAsync().Result.ToString() 160Assert.Equal(document.GetTextAsync().Result.ToString(), finalText) 189Dim text = document.GetTextAsync().Result 235Dim changedDocText = finalSolution.GetDocument(docId).GetTextAsync().Result.ToString() 236Assert.Equal(forkedDocument.GetTextAsync().Result.ToString(), changedDocText) 238Dim finalAddedDocText = finalSolution.GetDocument(addedDocumentId1).GetTextAsync().Result.ToString() 241Dim finalNotRemovedDocText = finalSolution.GetDocument(removedDocumentId2).GetTextAsync().Result.ToString() 275Dim text1 = document1.GetTextAsync().Result 278Dim text2 = document2.GetTextAsync().Result
Venus\DocumentService_IntegrationTests.vb (5)
85Dim definitionText = Await workspace.CurrentSolution.GetDocument(definitionDocument.Id).GetTextAsync() 152Dim definitionText = Await workspace.CurrentSolution.GetDocument(definitionDocument.Id).GetTextAsync() 189Assert.Equal(String.Empty, (Await newDocument.GetTextAsync()).ToString()) 278Dim mappedSource = Await mappedDocument.GetTextAsync(cancellationToken).ConfigureAwait(False) 316Dim mappedSource = Await mappedDocument.GetTextAsync(cancellationToken).ConfigureAwait(False)
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (3)
87var oldText = await oldDocument.GetTextAsync(); 487var localText = await localDoc.GetTextAsync(); 488var remoteText = await localDoc.GetTextAsync();