1333 references to ReadAsStringAsync
Aspire.EndToEnd.Tests (2)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Workload.Tests (1)
AuthSamples.FunctionalTests (34)
BasicWebSite (1)
Binding.Http.IntegrationTests (1)
Diagnostics.EFCore.FunctionalTests (13)
Diagnostics.FunctionalTests (8)
HeaderPropagationSample (1)
HttpClientApp (2)
HttpStress (10)
IIS.FunctionalTests (44)
IIS.LongTests (32)
IIS.NewHandler.FunctionalTests (32)
IIS.NewShim.FunctionalTests (32)
IIS.ShadowCopy.Tests (3)
IIS.Tests (1)
IISExpress.FunctionalTests (73)
Infrastructure.Common (1)
InMemory.FunctionalTests (1)
installer.tasks (1)
Interop.FunctionalTests (28)
HttpClientHttp2InteropTests.cs (17)
66Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
441var read = await response.Content.ReadAsStringAsync().DefaultTimeout();
540Assert.Equal("", await response.Content.ReadAsStringAsync());
573var responseBody = await response.Content.ReadAsStringAsync().DefaultTimeout();
628var exception = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync()).DefaultTimeout();
655var body = await response.Content.ReadAsStringAsync().DefaultTimeout();
685var responseBody = await response.Content.ReadAsStringAsync().DefaultTimeout();
741var responseEx = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync().DefaultTimeout());
800var responseEx = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync().DefaultTimeout());
1332Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
1447Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
1537Assert.Equal("Hello World", await response0.Content.ReadAsStringAsync());
1538Assert.Equal("Hello World", await response1.Content.ReadAsStringAsync());
1570Assert.Equal("點.看", await response.Content.ReadAsStringAsync());
1592Assert.Equal("/ !\"$%&'()*++,-./0123456789:;<>=@ABCDEFGHIJKLMNOPQRSTUVWXYZ[/]^_`{|}~點看", await response.Content.ReadAsStringAsync());
1637Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
1682Assert.Equal("Hello World", await response.Content.ReadAsStringAsync());
JwtClientSample (1)
Microsoft.AspNetCore.Authentication.Test (87)
OpenIdConnect\OpenIdConnectEventTests.cs (26)
48Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
94Assert.Equal("", await response.Content.ReadAsStringAsync());
116Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
165Assert.Equal("", await response.Content.ReadAsStringAsync());
201Assert.Equal("", await response.Content.ReadAsStringAsync());
224Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
275Assert.Equal("", await response.Content.ReadAsStringAsync());
305Assert.Equal("", await response.Content.ReadAsStringAsync());
329Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
382Assert.Equal("", await response.Content.ReadAsStringAsync());
413Assert.Equal("", await response.Content.ReadAsStringAsync());
437Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
490Assert.Equal("", await response.Content.ReadAsStringAsync());
521Assert.Equal("", await response.Content.ReadAsStringAsync());
546Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
601Assert.Equal("", await response.Content.ReadAsStringAsync());
633Assert.Equal("", await response.Content.ReadAsStringAsync());
664Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
731Assert.Equal("", await response.Content.ReadAsStringAsync());
779Assert.Equal("", await response.Content.ReadAsStringAsync());
801Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
825Assert.Equal("", await response.Content.ReadAsStringAsync());
862Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
896Assert.Equal("", await response.Content.ReadAsStringAsync());
922Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
949Assert.Equal("", await response.Content.ReadAsStringAsync());
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (26)
48Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
94Assert.Equal("", await response.Content.ReadAsStringAsync());
116Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
165Assert.Equal("", await response.Content.ReadAsStringAsync());
201Assert.Equal("", await response.Content.ReadAsStringAsync());
224Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
275Assert.Equal("", await response.Content.ReadAsStringAsync());
305Assert.Equal("", await response.Content.ReadAsStringAsync());
329Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
382Assert.Equal("", await response.Content.ReadAsStringAsync());
413Assert.Equal("", await response.Content.ReadAsStringAsync());
437Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
490Assert.Equal("", await response.Content.ReadAsStringAsync());
521Assert.Equal("", await response.Content.ReadAsStringAsync());
546Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
601Assert.Equal("", await response.Content.ReadAsStringAsync());
633Assert.Equal("", await response.Content.ReadAsStringAsync());
664Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
731Assert.Equal("", await response.Content.ReadAsStringAsync());
779Assert.Equal("", await response.Content.ReadAsStringAsync());
801Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
825Assert.Equal("", await response.Content.ReadAsStringAsync());
862Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
896Assert.Equal("", await response.Content.ReadAsStringAsync());
922Assert.Equal("/signin-oidc", await response.Content.ReadAsStringAsync());
949Assert.Equal("", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cors.Test (3)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (25)
HealthCheckMiddlewareTests.cs (20)
123Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
153Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
186Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
219Assert.Equal("Degraded", await response.Content.ReadAsStringAsync());
252Assert.Equal("Unhealthy", await response.Content.ReadAsStringAsync());
285Assert.Equal("Unhealthy", await response.Content.ReadAsStringAsync());
331var result = await response.Content.ReadAsStringAsync();
367Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
402Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
431Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
466Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
506Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
536Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
594Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
659Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
696Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
734Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
772Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
852Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
896Assert.Equal("Healthy", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.Diagnostics.Tests (28)
ExceptionHandlerTest.cs (14)
63Assert.Equal("An error occurred while adding a product", await response.Content.ReadAsStringAsync());
118Assert.Equal("Hello", await response.Content.ReadAsStringAsync());
184Assert.Equal(expectedResponseBody, await response.Content.ReadAsStringAsync());
240Assert.Equal(expectedResponseBody, await response.Content.ReadAsStringAsync());
295Assert.Equal(expectedResponseBody, await response.Content.ReadAsStringAsync());
367Assert.Equal("Custom 404", await response.Content.ReadAsStringAsync());
437Assert.Equal("Hello", await response.Content.ReadAsStringAsync());
601Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
650Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
771Assert.Equal("separate pipeline", await response.Content.ReadAsStringAsync());
822Assert.Equal("Handled", await response.Content.ReadAsStringAsync());
876Assert.Equal("Handled", await response.Content.ReadAsStringAsync());
928Assert.Equal("Handled", await response.Content.ReadAsStringAsync());
986Assert.Equal("Custom handler", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.FunctionalTests (5)
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Localization.FunctionalTests (2)
Microsoft.AspNetCore.Localization.Routing.Tests (3)
Microsoft.AspNetCore.Mvc.FunctionalTests (651)
Microsoft.AspNetCore.OutputCaching.Tests (5)
Microsoft.AspNetCore.ResponseCaching.Tests (4)
Microsoft.AspNetCore.Rewrite.Tests (1)
Microsoft.AspNetCore.Routing.FunctionalTests (30)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (28)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
Microsoft.AspNetCore.Session.Tests (3)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.AspNetCore.StaticAssets.Tests (5)
StaticAssetsIntegrationTests.cs (5)
67Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync());
117Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync());
169Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync());
338Assert.Equal("Hello, World!", await response.Content.ReadAsStringAsync());
391Assert.Equal("Hello, World! Modified", await response.Content.ReadAsStringAsync());
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
Microsoft.AspNetCore.StaticFiles.Tests (26)
RangeHeaderTests.cs (20)
30Assert.Equal("0123456789a", await resp.Content.ReadAsStringAsync());
53Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
72Assert.Equal("0123456789a", await resp.Content.ReadAsStringAsync());
89Assert.Equal("0123456789a", await resp.Content.ReadAsStringAsync());
125Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
142Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync());
159Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
178Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync());
197Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
216Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync());
224Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync());
243Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
251Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
277Assert.Equal(expectedData, await resp.Content.ReadAsStringAsync());
298Assert.Equal(expectedData, await resp.Content.ReadAsStringAsync());
332Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
385Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync());
407Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
429Assert.Equal("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", await resp.Content.ReadAsStringAsync());
447Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
Microsoft.AspNetCore.TestHost.Tests (13)
Microsoft.AspNetCore.Tests (4)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Deployment.Tasks.Links (8)
Microsoft.DotNet.Git.IssueManager (1)
Microsoft.DotNet.Helix.Sdk (5)
Microsoft.DotNet.VersionTools (11)
Negotiate.Client (12)
OpenIdConnectSample (1)
ServerComparison.FunctionalTests (16)
SocialSample (3)
Sockets.FunctionalTests (1)
Stress.ApiService (1)
System.Net.Http (1)
Templates.Tests (2)