436 references to GetTextAsync
GenerateDocumentationAndConfigFiles (1)
IdeCoreBenchmarks (1)
Microsoft.Analyzers.Extra.Tests (7)
Microsoft.Analyzers.Local.Tests (7)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.CodeAnalysis.Analyzers (4)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (44)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (6)
67await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length));
95await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length));
131return await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length));
177await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, sourceDocument, new TextSpan(0, sourceDocument.GetTextAsync().Result.Length));
207var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length));
263var diagnostics = await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length));
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.EditorFeatures (4)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (15)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (18)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (7)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (5)
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (77)
Workspaces\LspWorkspaceManagerTests.cs (30)
37Assert.Equal("LSP text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
43Assert.Equal("More textLSP text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
94Assert.Equal($"Some more text{markupOne}", (await firstDocumentWithChange.GetTextAsync(CancellationToken.None)).ToString());
124Assert.Equal("LSP text", (await openedDocument.GetTextAsync(CancellationToken.None)).ToString());
129Assert.Equal("Two is now three!", (await secondDocument.GetTextAsync()).ToString());
162Assert.Equal(markup, (await openedDocument.GetTextAsync(CancellationToken.None)).ToString());
195Assert.Equal("LSP text", (await openedDocument.GetTextAsync(CancellationToken.None)).ToString());
255Assert.Equal("LSP text", (await miscDocument.GetTextAsync(CancellationToken.None)).ToString());
261var miscText = await miscDocument.GetTextAsync(CancellationToken.None);
273var documentText = await document.GetTextAsync(CancellationToken.None);
399var changedFirstDocumentText = await changedFirstDocument.GetTextAsync(CancellationToken.None);
400var firstDocumentText = await firstDocument.GetTextAsync(CancellationToken.None);
495Assert.Equal("Server one text", (await documentServerTwo.GetTextAsync(CancellationToken.None)).ToString());
499Assert.Equal("Original text", (await documentServerTwo.GetTextAsync(CancellationToken.None)).ToString());
531Assert.Equal("Text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
556Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString());
566(await document1.GetTextAsync(CancellationToken.None)).ToString(),
567(await testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single().GetTextAsync()).ToString());
575Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString());
579(await document1.GetTextAsync(CancellationToken.None)).ToString(),
580(await testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single().GetTextAsync()).ToString());
593Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString());
614Assert.Equal("Text", (await document.GetTextAsync(CancellationToken.None)).ToString());
622Assert.Equal("New Disk Contents", (await document.GetTextAsync()).ToString());
628Assert.Equal("Text", (await document.GetTextAsync(CancellationToken.None)).ToString());
631Assert.Equal("Text", (await document.GetTextAsync()).ToString());
653var originalSourceText = await originalDocument.GetTextAsync(CancellationToken.None);
664var newSourceText = await newDocument.GetTextAsync(CancellationToken.None);
751Assert.Equal(generatorText, (await sourceGeneratedDocument.GetTextAsync(CancellationToken.None)).ToString());
762Assert.Equal(openText, (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (6)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (10)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (25)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (101)
SolutionTests\SolutionWithSourceGeneratorTests.cs (28)
566var existingText = await project.Documents.Single().GetTextAsync();
601Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync());
649Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync());
817.AddDocument(originalDocument1.Name, await originalDocument1.GetTextAsync().ConfigureAwait(false), filePath: originalDocument1.FilePath);
890Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
918Assert.Equal("// Frozen 1", (await (await solutionWithFrozenDocuments.GetRequiredProject(projectId1).GetSourceGeneratedDocumentsAsync()).Single().GetTextAsync()).ToString());
919Assert.Equal("// Frozen 2", (await (await solutionWithFrozenDocuments.GetRequiredProject(projectId2).GetSourceGeneratedDocumentsAsync()).Single().GetTextAsync()).ToString());
1005var sourceText = await updatedDocument.GetTextAsync();
1008sourceText = await solution.GetRequiredDocument(ordinaryDocument.Id).GetTextAsync();
1033var sourceText = await sourceGeneratedDocument.GetTextAsync();
1038sourceText = await updatedDocument.GetTextAsync();
1067var sourceText = await sourceGeneratedDocument.GetTextAsync();
1075sourceText = await updatedDocument.GetTextAsync();
1102var sourceText = await sourceGeneratedDocument.GetTextAsync();
1156var sourceText = await sourceGeneratedDocument.GetTextAsync();
1161sourceText = await updatedDocument.GetTextAsync();
1184var sourceText = await sourceGeneratedDocument.GetTextAsync();
1188sourceText = await sourceGeneratedDocument.GetTextAsync();
1193sourceText = await updatedDocument.GetTextAsync();
1221var sourceText = await sourceGeneratedDocument1!.GetTextAsync();
1230sourceText = await sourceGeneratedDocument1!.GetTextAsync();
1235sourceText = await sourceGeneratedDocument2!.GetTextAsync();
1242sourceText = await sourceGeneratedDocument1!.GetTextAsync();
1247sourceText = await sourceGeneratedDocument2!.GetTextAsync();
1278Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
1315Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
1346Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
1381Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
Microsoft.Gen.Logging.Unit.Tests (4)
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
Microsoft.Gen.Metrics.Unit.Tests (4)
Microsoft.Gen.MetricsReports.Unit.Tests (4)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.UnitTests (17)
Roslyn.Diagnostics.Analyzers (2)
Roslyn.VisualStudio.Next.UnitTests (13)
Text.Analyzers (1)