435 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)
65await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.GetTextAsync().Result.Length));
93await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(ideEngineWorkspace, ideEngineDocument, new TextSpan(0, ideEngineDocument.GetTextAsync().Result.Length));
129return await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(workspace, document, new TextSpan(0, document.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));
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 (6)
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 (72)
Workspaces\LspWorkspaceManagerTests.cs (27)
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());
354var changedFirstDocumentText = await changedFirstDocument.GetTextAsync(CancellationToken.None);
355var firstDocumentText = await firstDocument.GetTextAsync(CancellationToken.None);
450Assert.Equal("Server one text", (await documentServerTwo.GetTextAsync(CancellationToken.None)).ToString());
454Assert.Equal("Original text", (await documentServerTwo.GetTextAsync(CancellationToken.None)).ToString());
486Assert.Equal("Text", (await lspDocument.GetTextAsync(CancellationToken.None)).ToString());
511Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString());
521(await document1.GetTextAsync(CancellationToken.None)).ToString(),
522(await testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single().GetTextAsync()).ToString());
530Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString());
534(await document1.GetTextAsync(CancellationToken.None)).ToString(),
535(await testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single().GetTextAsync()).ToString());
548Assert.Equal("Text", (await document1.GetTextAsync(CancellationToken.None)).ToString());
569Assert.Equal("Text", (await document.GetTextAsync(CancellationToken.None)).ToString());
577Assert.Equal("New Disk Contents", (await document.GetTextAsync()).ToString());
583Assert.Equal("Text", (await document.GetTextAsync(CancellationToken.None)).ToString());
586Assert.Equal("Text", (await document.GetTextAsync()).ToString());
608var originalSourceText = await originalDocument.GetTextAsync(CancellationToken.None);
619var newSourceText = await newDocument.GetTextAsync(CancellationToken.None);
706Assert.Equal(generatorText, (await sourceGeneratedDocument.GetTextAsync(CancellationToken.None)).ToString());
717Assert.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)
563var existingText = await project.Documents.Single().GetTextAsync();
598Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync());
646Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync());
814.AddDocument(originalDocument1.Name, await originalDocument1.GetTextAsync().ConfigureAwait(false), filePath: originalDocument1.FilePath);
887Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
915Assert.Equal("// Frozen 1", (await (await solutionWithFrozenDocuments.GetRequiredProject(projectId1).GetSourceGeneratedDocumentsAsync()).Single().GetTextAsync()).ToString());
916Assert.Equal("// Frozen 2", (await (await solutionWithFrozenDocuments.GetRequiredProject(projectId2).GetSourceGeneratedDocumentsAsync()).Single().GetTextAsync()).ToString());
1002var sourceText = await updatedDocument.GetTextAsync();
1005sourceText = await solution.GetRequiredDocument(ordinaryDocument.Id).GetTextAsync();
1030var sourceText = await sourceGeneratedDocument.GetTextAsync();
1035sourceText = await updatedDocument.GetTextAsync();
1064var sourceText = await sourceGeneratedDocument.GetTextAsync();
1072sourceText = await updatedDocument.GetTextAsync();
1099var sourceText = await sourceGeneratedDocument.GetTextAsync();
1153var sourceText = await sourceGeneratedDocument.GetTextAsync();
1158sourceText = await updatedDocument.GetTextAsync();
1181var sourceText = await sourceGeneratedDocument.GetTextAsync();
1185sourceText = await sourceGeneratedDocument.GetTextAsync();
1190sourceText = await updatedDocument.GetTextAsync();
1218var sourceText = await sourceGeneratedDocument1!.GetTextAsync();
1227sourceText = await sourceGeneratedDocument1!.GetTextAsync();
1232sourceText = await sourceGeneratedDocument2!.GetTextAsync();
1239sourceText = await sourceGeneratedDocument1!.GetTextAsync();
1244sourceText = await sourceGeneratedDocument2!.GetTextAsync();
1275Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
1312Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
1343Assert.Equal("// Frozen Document", (await frozenWithSingleDocument.GetTextAsync()).ToString());
1378Assert.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 (3)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.UnitTests (17)
Roslyn.Diagnostics.Analyzers (2)
Roslyn.VisualStudio.Next.UnitTests (13)
Text.Analyzers (1)