33 writes to StatusCode
dotnet-svcutil-lib (1)
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (15)
Microsoft.Extensions.Http.Polly.Tests (2)
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
Microsoft.Extensions.Http.Resilience.Tests (6)
System.Net.Http (2)
1826 references to StatusCode
Aspire.Dashboard.Tests (17)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Redis.Tests (1)
Aspire.Playground.Tests (4)
Aspire.Workload.Tests (1)
AuthSamples.FunctionalTests (41)
CustomPolicyProviderTests.cs (11)
32Assert.Equal(HttpStatusCode.OK, response.StatusCode);
43Assert.Equal(HttpStatusCode.OK, response.StatusCode);
52Assert.Equal(HttpStatusCode.OK, signIn.StatusCode);
58Assert.Equal(HttpStatusCode.OK, response.StatusCode);
68Assert.Equal(HttpStatusCode.OK, signIn.StatusCode);
74Assert.Equal(HttpStatusCode.OK, response.StatusCode);
83Assert.Equal(HttpStatusCode.OK, signIn.StatusCode);
89Assert.Equal(HttpStatusCode.OK, response.StatusCode);
99Assert.Equal(HttpStatusCode.OK, signIn.StatusCode);
105Assert.Equal(HttpStatusCode.OK, response.StatusCode);
117Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ClientSample (1)
Diagnostics.EFCore.FunctionalTests (13)
Diagnostics.FunctionalTests (13)
dotnet-openapi (1)
dotnet-svcutil-lib (13)
GenerateRulesMissingDocumentation (3)
IIS.FunctionalTests (27)
IIS.LongTests (30)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode);
1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1385Assert.Equal(307, (int)response.StatusCode);
1390Assert.Equal(200, (int)response.StatusCode);
1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
IIS.NewHandler.FunctionalTests (30)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode);
1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1385Assert.Equal(307, (int)response.StatusCode);
1390Assert.Equal(200, (int)response.StatusCode);
1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
IIS.NewShim.FunctionalTests (30)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode);
1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1385Assert.Equal(307, (int)response.StatusCode);
1390Assert.Equal(200, (int)response.StatusCode);
1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (71)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode);
1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1385Assert.Equal(307, (int)response.StatusCode);
1390Assert.Equal(200, (int)response.StatusCode);
1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
installer.tasks (1)
Interop.FunctionalTests (2)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
Microsoft.AspNetCore.Authentication.Test (323)
CertificateTests.cs (31)
58Assert.Equal(HttpStatusCode.OK, response.StatusCode);
74Assert.Equal(HttpStatusCode.OK, response.StatusCode);
89Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
105Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
121Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
138Assert.Equal(HttpStatusCode.OK, response.StatusCode);
155Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
173Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
190Assert.Equal(HttpStatusCode.OK, response.StatusCode);
208Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
225Assert.Equal(HttpStatusCode.OK, response.StatusCode);
241Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
258Assert.Equal(HttpStatusCode.OK, response.StatusCode);
272Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
286Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
309Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
327Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
344Assert.Equal(HttpStatusCode.OK, response.StatusCode);
362Assert.Equal(HttpStatusCode.OK, response.StatusCode);
379Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
397Assert.Equal(HttpStatusCode.OK, response.StatusCode);
414Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
433Assert.Equal(HttpStatusCode.OK, response.StatusCode);
451Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
466Assert.Equal(HttpStatusCode.OK, response.StatusCode);
597Assert.Equal(HttpStatusCode.OK, response.StatusCode);
627Assert.Equal(HttpStatusCode.OK, response.StatusCode);
667Assert.Equal(HttpStatusCode.OK, response.StatusCode);
724Assert.Equal(HttpStatusCode.OK, response.StatusCode);
754Assert.Equal(HttpStatusCode.OK, response.StatusCode);
776Assert.Equal(HttpStatusCode.OK, response.StatusCode);
CookieTests.cs (27)
41Assert.Equal(HttpStatusCode.OK, response.StatusCode);
50Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode);
62Assert.Equal(HttpStatusCode.Forbidden, transaction.Response.StatusCode);
74Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
86Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode);
100Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1178Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1192Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1210Assert.Equal(HttpStatusCode.Redirect, transaction2.Response.StatusCode);
1226Assert.Equal(HttpStatusCode.Redirect, transaction2.Response.StatusCode);
1252Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1287Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1314Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1342Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1365Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1388Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1413Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1436Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1461Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1486Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1515Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1538Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1560Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1583Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1606Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1628Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1731Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
FacebookTests.cs (12)
58Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
74Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
110Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
141Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
173Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
205Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
231Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
264Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
299Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
366Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
434Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
448Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
GoogleTests.cs (35)
55Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
86Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
99Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
112Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
125Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode);
151Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
187Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
239Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
295Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
334Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
359Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
401Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
437Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
480Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
519Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
558Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
566Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
578Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
628Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
680Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
721Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
729Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
761Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
809Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
852Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
882Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
890Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
926Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
934Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
970Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
978Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1007Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1015Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1067Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1081Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
JwtBearerTests.cs (29)
81Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
119Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
163Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
172Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
216Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode);
246Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
256Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
265Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
274Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
292Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
319Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
343Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
363Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
383Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
416Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
465Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
477Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
517Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
546Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
580Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
652Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
724Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
784Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
807Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode);
834Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode);
862Assert.Equal(418, (int)response.Response.StatusCode);
911Assert.Equal(418, (int)response.StatusCode);
952Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
996Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
JwtBearerTests_Handler.cs (29)
72Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
109Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
153Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
162Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
203Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode);
232Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
242Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
251Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
260Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
275Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
299Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
320Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
337Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
354Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
386Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
434Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
446Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode);
483Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
509Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
542Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
610Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
676Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
732Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
754Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode);
780Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode);
807Assert.Equal(418, (int)response.Response.StatusCode);
856Assert.Equal(418, (int)response.StatusCode);
896Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
939Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
MicrosoftAccountTests.cs (13)
65Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
80Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
93Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
106Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
119Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
145Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
163Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
181Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
243Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
251Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
267Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
334Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
348Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
OAuthTests.cs (10)
134Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
162Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
192Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
218Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
247Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
276Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
313Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
348Assert.Equal(HttpStatusCode.NotAcceptable, transaction.Response.StatusCode);
384Assert.Equal(HttpStatusCode.NotAcceptable, transaction.Response.StatusCode);
420Assert.Equal(HttpStatusCode.NotAcceptable, transaction.Response.StatusCode);
OpenIdConnect\OpenIdConnectChallengeTests.cs (27)
36Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
69Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
104Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
125Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
164Assert.Equal(HttpStatusCode.OK, res.StatusCode);
197Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
232Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
275Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
312Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
356Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
390Assert.Equal(HttpStatusCode.Gone, res.StatusCode);
420Assert.Equal(HttpStatusCode.OK, res.StatusCode);
489Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
511Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
532Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
556Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
578Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
602Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
626Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
650Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
672Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
693Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
720Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
810Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
849Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
883Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
914Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
OpenIdConnect\OpenIdConnectEventTests.cs (34)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode);
93Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
115Assert.Equal(HttpStatusCode.OK, response.StatusCode);
164Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
200Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
223Assert.Equal(HttpStatusCode.OK, response.StatusCode);
274Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
304Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
328Assert.Equal(HttpStatusCode.OK, response.StatusCode);
381Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
412Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
436Assert.Equal(HttpStatusCode.OK, response.StatusCode);
489Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
520Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
545Assert.Equal(HttpStatusCode.OK, response.StatusCode);
600Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
632Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
663Assert.Equal(HttpStatusCode.OK, response.StatusCode);
730Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
778Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
800Assert.Equal(HttpStatusCode.OK, response.StatusCode);
824Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
861Assert.Equal(HttpStatusCode.OK, response.StatusCode);
895Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
921Assert.Equal(HttpStatusCode.OK, response.StatusCode);
948Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
969Assert.Equal(HttpStatusCode.Found, response.StatusCode);
996Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1013Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1039Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1065Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1082Assert.Equal(HttpStatusCode.Found, response.StatusCode);
1105Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1132Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (34)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode);
93Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
115Assert.Equal(HttpStatusCode.OK, response.StatusCode);
164Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
200Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
223Assert.Equal(HttpStatusCode.OK, response.StatusCode);
274Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
304Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
328Assert.Equal(HttpStatusCode.OK, response.StatusCode);
381Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
412Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
436Assert.Equal(HttpStatusCode.OK, response.StatusCode);
489Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
520Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
545Assert.Equal(HttpStatusCode.OK, response.StatusCode);
600Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
632Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
663Assert.Equal(HttpStatusCode.OK, response.StatusCode);
730Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
778Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
800Assert.Equal(HttpStatusCode.OK, response.StatusCode);
824Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
861Assert.Equal(HttpStatusCode.OK, response.StatusCode);
895Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
921Assert.Equal(HttpStatusCode.OK, response.StatusCode);
948Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
969Assert.Equal(HttpStatusCode.Found, response.StatusCode);
996Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1013Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1039Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1065Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1082Assert.Equal(HttpStatusCode.Found, response.StatusCode);
1105Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
1132Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
OpenIdConnect\OpenIdConnectTests.cs (13)
50Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
77Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
104Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
130Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
157Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
182Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
200Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
218Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
240Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
271Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
320Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.Response.StatusCode);
344Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.Response.StatusCode);
368Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.Response.StatusCode);
TwitterTests.cs (16)
71Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
133Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
146Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
159Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
181Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
209Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
223Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
259Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
273Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
366Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
380Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
431Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
436Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
444Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
510Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
526Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.Cors.Test (3)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (30)
HealthCheckMiddlewareTests.cs (24)
66Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
93Assert.Equal(HttpStatusCode.OK, response.StatusCode);
120Assert.Equal(HttpStatusCode.OK, response.StatusCode);
151Assert.Equal(HttpStatusCode.OK, response.StatusCode);
184Assert.Equal(HttpStatusCode.OK, response.StatusCode);
217Assert.Equal(HttpStatusCode.OK, response.StatusCode);
250Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
283Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
366Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
401Assert.Equal(HttpStatusCode.Created, response.StatusCode);
430Assert.Equal(HttpStatusCode.OK, response.StatusCode);
465Assert.Equal(HttpStatusCode.OK, response.StatusCode);
504Assert.Equal(HttpStatusCode.OK, response.StatusCode);
534Assert.Equal(HttpStatusCode.OK, response.StatusCode);
564Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
592Assert.Equal(HttpStatusCode.OK, response.StatusCode);
622Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
657Assert.Equal(HttpStatusCode.OK, response.StatusCode);
694Assert.Equal(HttpStatusCode.OK, response.StatusCode);
732Assert.Equal(HttpStatusCode.OK, response.StatusCode);
770Assert.Equal(HttpStatusCode.OK, response.StatusCode);
808Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
850Assert.Equal(HttpStatusCode.OK, response.StatusCode);
894Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (14)
Microsoft.AspNetCore.Diagnostics.Tests (19)
ExceptionHandlerTest.cs (12)
62Assert.Equal(expectedStatusCode, response.StatusCode);
183Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
239Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
366Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
600Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
649Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
690Assert.Equal(HttpStatusCode.Conflict, response.StatusCode);
729Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
770Assert.Equal(HttpStatusCode.OK, response.StatusCode);
985Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
1029Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
1099Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
Microsoft.AspNetCore.HeaderPropagation.Tests (4)
Microsoft.AspNetCore.HostFiltering.Tests (6)
Microsoft.AspNetCore.Http.Connections.Client (7)
Microsoft.AspNetCore.HttpsPolicy.Tests (14)
Microsoft.AspNetCore.Identity.FunctionalTests (12)
Microsoft.AspNetCore.Identity.InMemory.Test (19)
FunctionalTest.cs (19)
42Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode);
52Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode);
56Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode);
87Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode);
91Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode);
126Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode);
130Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode);
185Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode);
189Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode);
225Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode);
229Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode);
236Assert.Equal(HttpStatusCode.OK, transaction3.Response.StatusCode);
242Assert.Equal(HttpStatusCode.OK, transaction4.Response.StatusCode);
254Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode);
258Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode);
265Assert.Equal(HttpStatusCode.OK, transaction3.Response.StatusCode);
268Assert.Equal(HttpStatusCode.OK, transaction4.Response.StatusCode);
272Assert.Equal(HttpStatusCode.OK, transaction5.Response.StatusCode);
278Assert.Equal(HttpStatusCode.InternalServerError, transaction6.Response.StatusCode);
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Localization.FunctionalTests (2)
Microsoft.AspNetCore.Localization.Routing.Tests (3)
Microsoft.AspNetCore.Mvc.FunctionalTests (618)
ApplicationModelTest.cs (11)
37Assert.Equal(HttpStatusCode.OK, response.StatusCode);
50Assert.Equal(HttpStatusCode.OK, response.StatusCode);
63Assert.Equal(HttpStatusCode.OK, response.StatusCode);
76Assert.Equal(HttpStatusCode.OK, response.StatusCode);
89Assert.Equal(HttpStatusCode.OK, response.StatusCode);
102Assert.Equal(HttpStatusCode.OK, response.StatusCode);
115Assert.Equal(HttpStatusCode.OK, response.StatusCode);
133Assert.Equal(HttpStatusCode.OK, response.StatusCode);
146Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
189Assert.Equal(HttpStatusCode.OK, response.StatusCode);
202Assert.Equal(HttpStatusCode.OK, response.StatusCode);
AsyncActionsTests.cs (12)
38Assert.Equal(HttpStatusCode.OK, response.StatusCode);
50Assert.Equal(HttpStatusCode.OK, response.StatusCode);
73Assert.Equal(HttpStatusCode.OK, response.StatusCode);
96Assert.Equal(HttpStatusCode.OK, response.StatusCode);
119Assert.Equal(HttpStatusCode.OK, response.StatusCode);
142Assert.Equal(HttpStatusCode.OK, response.StatusCode);
165Assert.Equal(HttpStatusCode.OK, response.StatusCode);
188Assert.Equal(HttpStatusCode.OK, response.StatusCode);
211Assert.Equal(HttpStatusCode.OK, response.StatusCode);
234Assert.Equal(HttpStatusCode.OK, response.StatusCode);
257Assert.Equal(HttpStatusCode.OK, response.StatusCode);
280Assert.Equal(HttpStatusCode.OK, response.StatusCode);
AuthMiddlewareAndFilterTestBase.cs (11)
132Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
139Assert.Equal(HttpStatusCode.OK, response.StatusCode);
147Assert.Equal(HttpStatusCode.OK, response.StatusCode);
151Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
158Assert.Equal(HttpStatusCode.OK, response.StatusCode);
173Assert.Equal(HttpStatusCode.OK, response.StatusCode);
181Assert.Equal(HttpStatusCode.OK, response.StatusCode);
192Assert.Equal(HttpStatusCode.OK, response.StatusCode);
207Assert.Equal(HttpStatusCode.OK, response.StatusCode);
212Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
220Assert.Equal(HttpStatusCode.OK, response.StatusCode);
BasicTests.cs (19)
55Assert.Equal(HttpStatusCode.OK, response.StatusCode);
75Assert.Equal(HttpStatusCode.OK, response.StatusCode);
99Assert.Equal(HttpStatusCode.OK, response.StatusCode);
119Assert.Equal(HttpStatusCode.OK, response.StatusCode);
138Assert.Equal(HttpStatusCode.OK, response.StatusCode);
151Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
164Assert.Equal(HttpStatusCode.OK, response.StatusCode);
179Assert.Equal(HttpStatusCode.OK, result.StatusCode);
193Assert.Equal(HttpStatusCode.Found, response.StatusCode);
211Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
229Assert.Equal(HttpStatusCode.OK, response.StatusCode);
245Assert.Equal(HttpStatusCode.OK, response.StatusCode);
268Assert.Equal(HttpStatusCode.OK, response.StatusCode);
291Assert.Equal(HttpStatusCode.OK, response.StatusCode);
341Assert.Equal(HttpStatusCode.OK, response.StatusCode);
353Assert.Equal(HttpStatusCode.OK, response.StatusCode);
365Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
407Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
424Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
ContentNegotiationTest.cs (15)
116Assert.Equal(HttpStatusCode.OK, response.StatusCode);
135Assert.Equal(HttpStatusCode.OK, response.StatusCode);
160Assert.Equal(HttpStatusCode.OK, response.StatusCode);
178Assert.Equal(HttpStatusCode.OK, response.StatusCode);
191Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
219Assert.Equal(HttpStatusCode.OK, response.StatusCode);
374Assert.Equal(HttpStatusCode.OK, response.StatusCode);
392Assert.Equal(HttpStatusCode.OK, response.StatusCode);
412Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
427Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
442Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
456Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
468Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
479Assert.Equal(HttpStatusCode.OK, response.StatusCode);
534Assert.Equal(HttpStatusCode.OK, response.StatusCode);
CorsTestsBase.cs (14)
51Assert.Equal(HttpStatusCode.OK, response.StatusCode);
70Assert.Equal(HttpStatusCode.OK, response.StatusCode);
88Assert.Equal(HttpStatusCode.OK, response.StatusCode);
106Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode);
131Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
166Assert.Equal(HttpStatusCode.OK, response.StatusCode);
199Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
232Assert.Equal(HttpStatusCode.OK, response.StatusCode);
256Assert.Equal(HttpStatusCode.OK, response.StatusCode);
285Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
309Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
341Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
380Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
403Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
FileResultTests.cs (39)
42Assert.Equal(HttpStatusCode.OK, response.StatusCode);
66Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
88Assert.Equal(HttpStatusCode.OK, response.StatusCode);
108Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode);
130Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
152Assert.Equal(HttpStatusCode.OK, response.StatusCode);
172Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode);
189Assert.Equal(HttpStatusCode.OK, response.StatusCode);
216Assert.Equal(HttpStatusCode.OK, response.StatusCode);
235Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
255Assert.Equal(HttpStatusCode.OK, response.StatusCode);
287Assert.Equal(httpStatusCode, (int)response.StatusCode);
312Assert.Equal(HttpStatusCode.OK, response.StatusCode);
329Assert.Equal(HttpStatusCode.OK, response.StatusCode);
357Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
375Assert.Equal(HttpStatusCode.OK, response.StatusCode);
396Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode);
410Assert.Equal(HttpStatusCode.OK, response.StatusCode);
437Assert.Equal(HttpStatusCode.OK, response.StatusCode);
460Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
477Assert.Equal(HttpStatusCode.OK, response.StatusCode);
506Assert.Equal(httpStatusCode, (int)response.StatusCode);
530Assert.Equal(HttpStatusCode.OK, response.StatusCode);
558Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
576Assert.Equal(HttpStatusCode.OK, response.StatusCode);
600Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode);
614Assert.Equal(HttpStatusCode.OK, response.StatusCode);
641Assert.Equal(HttpStatusCode.OK, response.StatusCode);
664Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
680Assert.Equal(HttpStatusCode.OK, response.StatusCode);
712Assert.Equal(httpStatusCode, (int)response.StatusCode);
739Assert.Equal(HttpStatusCode.OK, response.StatusCode);
767Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
791Assert.Equal(HttpStatusCode.OK, response.StatusCode);
810Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode);
833Assert.Equal(HttpStatusCode.OK, response.StatusCode);
857Assert.Equal(HttpStatusCode.OK, response.StatusCode);
880Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode);
916Assert.Equal(httpStatusCode, (int)response.StatusCode);
LinkGeneratorTest.cs (18)
45Assert.Equal(HttpStatusCode.OK, response.StatusCode);
57Assert.Equal(HttpStatusCode.OK, response.StatusCode);
69Assert.Equal(HttpStatusCode.OK, response.StatusCode);
81Assert.Equal(HttpStatusCode.OK, response.StatusCode);
93Assert.Equal(HttpStatusCode.OK, response.StatusCode);
105Assert.Equal(HttpStatusCode.OK, response.StatusCode);
119Assert.Equal(HttpStatusCode.OK, response.StatusCode);
131Assert.Equal(HttpStatusCode.OK, response.StatusCode);
143Assert.Equal(HttpStatusCode.OK, response.StatusCode);
155Assert.Equal(HttpStatusCode.OK, response.StatusCode);
167Assert.Equal(HttpStatusCode.OK, response.StatusCode);
179Assert.Equal(HttpStatusCode.OK, response.StatusCode);
191Assert.Equal(HttpStatusCode.OK, response.StatusCode);
203Assert.Equal(HttpStatusCode.OK, response.StatusCode);
215Assert.Equal(HttpStatusCode.OK, response.StatusCode);
227Assert.Equal(HttpStatusCode.OK, response.StatusCode);
239Assert.Equal(HttpStatusCode.OK, response.StatusCode);
251Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RazorPagesTest.cs (54)
55Assert.Equal(HttpStatusCode.OK, response.StatusCode);
109Assert.Equal(HttpStatusCode.OK, response.StatusCode);
140Assert.Equal(HttpStatusCode.OK, response.StatusCode);
222Assert.Equal(HttpStatusCode.OK, response.StatusCode);
253Assert.Equal(HttpStatusCode.OK, response.StatusCode);
278Assert.Equal(HttpStatusCode.NotFound, routeResponse.StatusCode);
291Assert.Equal(HttpStatusCode.OK, routeResponse.StatusCode);
325Assert.Equal(HttpStatusCode.OK, response.StatusCode);
339Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
352Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
368Assert.Equal(HttpStatusCode.OK, response.StatusCode);
384Assert.Equal(HttpStatusCode.OK, response.StatusCode);
400Assert.Equal(HttpStatusCode.OK, response.StatusCode);
424Assert.Equal(HttpStatusCode.OK, response.StatusCode);
443Assert.Equal(HttpStatusCode.OK, response.StatusCode);
472Assert.Equal(HttpStatusCode.OK, response.StatusCode);
488Assert.Equal(HttpStatusCode.OK, response.StatusCode);
505Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
530Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
555Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
563Assert.Equal(HttpStatusCode.OK, response.StatusCode);
588Assert.Equal(HttpStatusCode.OK, response.StatusCode);
601Assert.Equal(HttpStatusCode.OK, response.StatusCode);
617Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
631Assert.Equal(HttpStatusCode.OK, response.StatusCode);
685Assert.Equal(HttpStatusCode.OK, response.StatusCode);
713Assert.Equal(HttpStatusCode.OK, response.StatusCode);
740Assert.Equal(HttpStatusCode.OK, response.StatusCode);
771Assert.Equal(HttpStatusCode.OK, response.StatusCode);
856Assert.Equal(HttpStatusCode.OK, response.StatusCode);
880Assert.Equal(HttpStatusCode.OK, response.StatusCode);
896Assert.Equal(HttpStatusCode.OK, response.StatusCode);
912Assert.Equal(HttpStatusCode.OK, response.StatusCode);
929Assert.Equal(HttpStatusCode.OK, response.StatusCode);
960Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
974Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
996Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1010Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1024Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1038Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1052Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1064Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1076Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1088Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1102Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1114Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1213Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1224Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1251Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1387Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
1461Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1477Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1493Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1502Assert.Equal(HttpStatusCode.OK, getResponse.StatusCode);
RazorPagesWithBasePathTest.cs (22)
38Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
48Assert.Equal(HttpStatusCode.OK, response.StatusCode);
61Assert.Equal(HttpStatusCode.OK, response.StatusCode);
74Assert.Equal(HttpStatusCode.OK, response.StatusCode);
87Assert.Equal(HttpStatusCode.OK, response.StatusCode);
100Assert.Equal(HttpStatusCode.OK, response.StatusCode);
113Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
124Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
259Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
273Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
392Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
419Assert.Equal(HttpStatusCode.OK, response.StatusCode);
448Assert.Equal(HttpStatusCode.OK, response.StatusCode);
477Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
505Assert.Equal(HttpStatusCode.OK, response.StatusCode);
622Assert.Equal(HttpStatusCode.OK, response.StatusCode);
635Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
649Assert.Equal(HttpStatusCode.OK, response.StatusCode);
663Assert.Equal(HttpStatusCode.OK, response.StatusCode);
726Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
737Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
756Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingAcrossPipelineBranchesTest.cs (12)
57Assert.Equal(HttpStatusCode.OK, subdirResponse.StatusCode);
61Assert.Equal(HttpStatusCode.OK, commonResponse.StatusCode);
65Assert.Equal(HttpStatusCode.OK, defaultResponse.StatusCode);
92Assert.Equal(HttpStatusCode.OK, subdirResponse.StatusCode);
95Assert.Equal(HttpStatusCode.OK, commonResponse.StatusCode);
98Assert.Equal(HttpStatusCode.OK, defaultResponse.StatusCode);
122Assert.Equal(HttpStatusCode.OK, subdirResponse.StatusCode);
130Assert.Equal(HttpStatusCode.OK, defaultResponse.StatusCode);
152Assert.Equal(HttpStatusCode.NotFound, commonResponse.StatusCode);
153Assert.Equal(HttpStatusCode.NotFound, subdirResponse.StatusCode);
154Assert.Equal(HttpStatusCode.NotFound, defaultResponse.StatusCode);
170Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingEndpointRoutingTest.cs (27)
19Assert.Equal(HttpStatusCode.OK, response.StatusCode);
40Assert.Equal(HttpStatusCode.OK, response.StatusCode);
56Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
66Assert.Equal(HttpStatusCode.OK, response.StatusCode);
82Assert.Equal(HttpStatusCode.OK, response.StatusCode);
98Assert.Equal(HttpStatusCode.OK, response.StatusCode);
114Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
127Assert.Equal(HttpStatusCode.OK, response.StatusCode);
147Assert.Equal(HttpStatusCode.OK, response.StatusCode);
167Assert.Equal(HttpStatusCode.OK, response.StatusCode);
187Assert.Equal(HttpStatusCode.OK, response.StatusCode);
204Assert.Equal(HttpStatusCode.OK, response.StatusCode);
219Assert.Equal(HttpStatusCode.OK, response.StatusCode);
236Assert.Equal(HttpStatusCode.OK, response.StatusCode);
254Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode);
264Assert.Equal(HttpStatusCode.OK, response.StatusCode);
279Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
289Assert.Equal(HttpStatusCode.OK, response.StatusCode);
304Assert.Equal(HttpStatusCode.OK, response.StatusCode);
324Assert.Equal(HttpStatusCode.OK, response.StatusCode);
343Assert.Equal(HttpStatusCode.OK, response.StatusCode);
362Assert.Equal(HttpStatusCode.OK, response.StatusCode);
380Assert.Equal(HttpStatusCode.OK, response.StatusCode);
395Assert.Equal(HttpStatusCode.OK, response.StatusCode);
410Assert.Equal(HttpStatusCode.OK, response.StatusCode);
425Assert.Equal(HttpStatusCode.OK, response.StatusCode);
434Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode);
RoutingTestsBase.cs (67)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode);
65Assert.Equal(HttpStatusCode.OK, response.StatusCode);
81Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
91Assert.Equal(HttpStatusCode.OK, response.StatusCode);
114Assert.Equal(HttpStatusCode.OK, response.StatusCode);
134Assert.Equal(HttpStatusCode.OK, response.StatusCode);
173Assert.Equal(HttpStatusCode.OK, response.StatusCode);
220Assert.Equal(HttpStatusCode.OK, response.StatusCode);
230Assert.Equal(HttpStatusCode.OK, response.StatusCode);
240Assert.Equal(HttpStatusCode.OK, response.StatusCode);
252Assert.Equal(HttpStatusCode.OK, response.StatusCode);
264Assert.Equal(HttpStatusCode.OK, response.StatusCode);
288Assert.Equal(HttpStatusCode.OK, response.StatusCode);
312Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
322Assert.Equal(HttpStatusCode.OK, response.StatusCode);
347Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
359Assert.Equal(HttpStatusCode.OK, response.StatusCode);
374Assert.Equal(HttpStatusCode.OK, response.StatusCode);
407Assert.Equal(HttpStatusCode.OK, response.StatusCode);
472Assert.Equal(HttpStatusCode.OK, response.StatusCode);
499Assert.Equal(HttpStatusCode.OK, response.StatusCode);
525Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode);
541Assert.Equal(HttpStatusCode.OK, response.StatusCode);
569Assert.Equal(HttpStatusCode.OK, response.StatusCode);
623Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
635Assert.Equal(HttpStatusCode.OK, response.StatusCode);
652Assert.Equal(HttpStatusCode.OK, response.StatusCode);
682Assert.Equal(HttpStatusCode.OK, response.StatusCode);
709Assert.Equal(HttpStatusCode.OK, response.StatusCode);
734Assert.Equal(HttpStatusCode.OK, response.StatusCode);
754Assert.Equal(HttpStatusCode.OK, response.StatusCode);
777Assert.Equal(HttpStatusCode.OK, response.StatusCode);
799Assert.Equal(HttpStatusCode.OK, response.StatusCode);
824Assert.Equal(HttpStatusCode.OK, response.StatusCode);
844Assert.Equal(HttpStatusCode.OK, response.StatusCode);
867Assert.Equal(HttpStatusCode.OK, response.StatusCode);
888Assert.Equal(HttpStatusCode.OK, response.StatusCode);
909Assert.Equal(HttpStatusCode.OK, response.StatusCode);
930Assert.Equal(HttpStatusCode.OK, response.StatusCode);
986Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1006Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1026Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1046Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1070Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1088Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1110Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1128Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1150Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1171Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1192Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1214Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1236Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1258Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1280Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1300Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1321Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1342Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1362Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1383Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1404Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1425Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1446Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1467Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1492Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1544Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1561Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1603Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
TempDataTestBase.cs (19)
49Assert.Equal(HttpStatusCode.OK, response.StatusCode);
55Assert.Equal(HttpStatusCode.OK, response.StatusCode);
63Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
80Assert.Equal(HttpStatusCode.OK, response.StatusCode);
99Assert.Equal(HttpStatusCode.OK, response.StatusCode);
105Assert.Equal(HttpStatusCode.Redirect, redirectResponse.StatusCode);
111Assert.Equal(HttpStatusCode.OK, response.StatusCode);
130Assert.Equal(HttpStatusCode.OK, response.StatusCode);
136Assert.Equal(HttpStatusCode.OK, peekResponse.StatusCode);
144Assert.Equal(HttpStatusCode.OK, getResponse.StatusCode);
170Assert.Equal(HttpStatusCode.Redirect, redirectResponse.StatusCode);
176Assert.Equal(HttpStatusCode.OK, response.StatusCode);
209Assert.Equal(HttpStatusCode.OK, response.StatusCode);
215Assert.Equal(HttpStatusCode.OK, response.StatusCode);
223Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
233Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
241Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
251Assert.Equal(HttpStatusCode.OK, response.StatusCode);
259Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
TestingInfrastructureTests.cs (10)
64Assert.Equal(HttpStatusCode.OK, response.StatusCode);
87Assert.Equal(HttpStatusCode.OK, response.StatusCode);
106Assert.Equal(HttpStatusCode.OK, response.StatusCode);
122Assert.Equal(HttpStatusCode.SeeOther, response.StatusCode);
136Assert.Equal(HttpStatusCode.OK, response.StatusCode);
149Assert.Equal(HttpStatusCode.OK, response.StatusCode);
158Assert.Equal(HttpStatusCode.OK, acquireToken.StatusCode);
165Assert.Equal(HttpStatusCode.OK, response.StatusCode);
178Assert.Equal(HttpStatusCode.OK, response.StatusCode);
241Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
VersioningTestsBase.cs (24)
51Assert.Equal(HttpStatusCode.OK, response.StatusCode);
75Assert.Equal(HttpStatusCode.OK, response.StatusCode);
95Assert.Equal(HttpStatusCode.OK, response.StatusCode);
116Assert.Equal(HttpStatusCode.OK, response.StatusCode);
135Assert.Equal(HttpStatusCode.OK, response.StatusCode);
154Assert.Equal(HttpStatusCode.OK, response.StatusCode);
181Assert.Equal(HttpStatusCode.OK, response.StatusCode);
205Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
230Assert.Equal(HttpStatusCode.OK, response.StatusCode);
256Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
275Assert.Equal(HttpStatusCode.OK, response.StatusCode);
297Assert.Equal(HttpStatusCode.OK, response.StatusCode);
318Assert.Equal(HttpStatusCode.OK, response.StatusCode);
339Assert.Equal(HttpStatusCode.OK, response.StatusCode);
361Assert.Equal(HttpStatusCode.OK, response.StatusCode);
382Assert.Equal(HttpStatusCode.OK, response.StatusCode);
401Assert.Equal(HttpStatusCode.OK, response.StatusCode);
423Assert.Equal(HttpStatusCode.OK, response.StatusCode);
444Assert.Equal(HttpStatusCode.OK, response.StatusCode);
465Assert.Equal(HttpStatusCode.OK, response.StatusCode);
489Assert.Equal(HttpStatusCode.OK, response.StatusCode);
508Assert.Equal(HttpStatusCode.OK, response.StatusCode);
527Assert.Equal(HttpStatusCode.OK, response.StatusCode);
549Assert.Equal(HttpStatusCode.OK, response.StatusCode);
XmlOutputFormatterTests.cs (10)
49Assert.Equal(HttpStatusCode.OK, response.StatusCode);
71Assert.Equal(HttpStatusCode.OK, response.StatusCode);
94Assert.Equal(HttpStatusCode.OK, response.StatusCode);
115Assert.Equal(HttpStatusCode.OK, response.StatusCode);
138Assert.Equal(HttpStatusCode.OK, response.StatusCode);
159Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
177Assert.Equal(HttpStatusCode.OK, response.StatusCode);
197Assert.Equal(HttpStatusCode.OK, response.StatusCode);
217Assert.Equal(HttpStatusCode.OK, response.StatusCode);
238Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Mvc.Testing (7)
Microsoft.AspNetCore.OutputCaching.Tests (3)
Microsoft.AspNetCore.ResponseCaching.Tests (3)
Microsoft.AspNetCore.Rewrite.Tests (15)
MiddlewareTests.cs (12)
257Assert.Equal(statusCode, (int)response.StatusCode);
384Assert.Equal(StatusCodes.Status301MovedPermanently, (int)response.StatusCode);
411Assert.Equal(StatusCodes.Status301MovedPermanently, (int)response.StatusCode);
440Assert.Equal(statusCode, (int)response.StatusCode);
469Assert.Equal(StatusCodes.Status307TemporaryRedirect, (int)response.StatusCode);
494Assert.Equal(StatusCodes.Status308PermanentRedirect, (int)response.StatusCode);
557Assert.Equal(statusCode, (int)response.StatusCode);
586Assert.Equal(StatusCodes.Status307TemporaryRedirect, (int)response.StatusCode);
611Assert.Equal(StatusCodes.Status308PermanentRedirect, (int)response.StatusCode);
784Assert.Equal(StatusCodes.Status307TemporaryRedirect, (int)response.StatusCode);
809Assert.Equal(StatusCodes.Status308PermanentRedirect, (int)response.StatusCode);
838Assert.Equal(statusCode, (int)response.StatusCode);
Microsoft.AspNetCore.Routing.FunctionalTests (40)
EndpointRoutingSampleTest.cs (13)
42Assert.Equal(HttpStatusCode.OK, response.StatusCode);
56Assert.Equal(HttpStatusCode.OK, response.StatusCode);
73Assert.Equal(HttpStatusCode.OK, response.StatusCode);
92Assert.Equal(HttpStatusCode.OK, response.StatusCode);
110Assert.Equal(HttpStatusCode.OK, response.StatusCode);
123Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
136Assert.Equal(HttpStatusCode.OK, response.StatusCode);
152Assert.Equal(HttpStatusCode.OK, response.StatusCode);
165Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
179Assert.Equal(HttpStatusCode.OK, response.StatusCode);
197Assert.Equal(HttpStatusCode.OK, response.StatusCode);
210Assert.Equal(HttpStatusCode.OK, response.StatusCode);
223Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (71)
AuthenticationTests.cs (18)
39Assert.Equal(HttpStatusCode.OK, response.StatusCode);
57Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
79Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
105Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
141Assert.Equal(HttpStatusCode.OK, response.StatusCode);
162Assert.Equal(HttpStatusCode.OK, response.StatusCode);
188Assert.Equal(HttpStatusCode.OK, response.StatusCode);
214Assert.Equal(HttpStatusCode.OK, response.StatusCode);
237Assert.Equal(HttpStatusCode.OK, response.StatusCode);
259Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
282Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
300Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
326Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
344Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
365Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
399Assert.Equal(HttpStatusCode.OK, response.StatusCode);
426Assert.Equal(HttpStatusCode.OK, response.StatusCode);
453Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ResponseBodyTests.cs (13)
33Assert.Equal(200, (int)response.StatusCode);
62Assert.Equal(200, (int)response.StatusCode);
83Assert.Equal(200, (int)response.StatusCode);
102Assert.Equal(200, (int)response.StatusCode);
120Assert.Equal(200, (int)response.StatusCode);
152Assert.Equal(200, (int)response.StatusCode);
177Assert.Equal(200, (int)response.StatusCode);
199Assert.Equal(200, (int)response.StatusCode);
223Assert.Equal(200, (int)response.StatusCode);
303Assert.Equal(200, (int)response.StatusCode);
334Assert.Equal(200, (int)response.StatusCode);
362Assert.Equal(200, (int)response.StatusCode);
389Assert.Equal(200, (int)response.StatusCode);
ResponseSendFileTests.cs (14)
56Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
72Assert.Equal(200, (int)response.StatusCode);
91Assert.Equal(200, (int)response.StatusCode);
110Assert.Equal(200, (int)response.StatusCode);
130Assert.Equal(200, (int)response.StatusCode);
149Assert.Equal(200, (int)response.StatusCode);
206Assert.Equal(200, (int)response.StatusCode);
226Assert.Equal(200, (int)response.StatusCode);
247Assert.Equal(200, (int)response.StatusCode);
268Assert.Equal(200, (int)response.StatusCode);
295Assert.Equal(200, (int)response.StatusCode);
321Assert.Equal(200, (int)response.StatusCode);
345Assert.Equal(200, (int)response.StatusCode);
363Assert.Equal(200, (int)response.StatusCode);
Microsoft.AspNetCore.Server.IISIntegration.Tests (5)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.StaticAssets.Tests (32)
StaticAssetsIntegrationTests.cs (32)
63Assert.Equal(HttpStatusCode.OK, response.StatusCode);
113Assert.Equal(HttpStatusCode.OK, response.StatusCode);
165Assert.Equal(HttpStatusCode.OK, response.StatusCode);
228Assert.Equal(HttpStatusCode.OK, response.StatusCode);
285Assert.Equal(HttpStatusCode.OK, response.StatusCode);
334Assert.Equal(HttpStatusCode.OK, response.StatusCode);
387Assert.Equal(HttpStatusCode.OK, response.StatusCode);
443Assert.Equal(HttpStatusCode.OK, response.StatusCode);
624Assert.Equal(HttpStatusCode.OK, response.StatusCode);
654Assert.Equal(HttpStatusCode.PreconditionFailed, resp.StatusCode);
667Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
678Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
689Assert.Equal(HttpStatusCode.MethodNotAllowed, resp.StatusCode);
716Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode);
729Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode);
742Assert.Equal(HttpStatusCode.MethodNotAllowed, resp2.StatusCode);
791Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode);
808Assert.Equal(HttpStatusCode.OK, resp2.StatusCode);
814Assert.Equal(HttpStatusCode.OK, resp3.StatusCode);
844Assert.Equal(HttpStatusCode.OK, resp2.StatusCode);
845Assert.Equal(HttpStatusCode.OK, resp3.StatusCode);
846Assert.Equal(HttpStatusCode.OK, resp4.StatusCode);
871Assert.Equal(HttpStatusCode.OK, res.StatusCode);
884Assert.Equal(HttpStatusCode.OK, res.StatusCode);
907Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode);
931Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode);
948Assert.Equal(HttpStatusCode.OK, res2.StatusCode);
961Assert.Equal(HttpStatusCode.OK, res.StatusCode);
973Assert.Equal(HttpStatusCode.OK, res.StatusCode);
989Assert.Equal(HttpStatusCode.PreconditionFailed, res2.StatusCode);
1010Assert.Equal(HttpStatusCode.PartialContent, res1.StatusCode);
1014Assert.Equal(HttpStatusCode.PartialContent, res2.StatusCode);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
Microsoft.AspNetCore.StaticFiles.Tests (74)
CacheHeaderTests.cs (21)
53Assert.Equal(HttpStatusCode.PreconditionFailed, resp.StatusCode);
67Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
79Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
91Assert.Equal(HttpStatusCode.NotFound, resp.StatusCode);
119Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode);
133Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode);
147Assert.Equal(HttpStatusCode.NotFound, resp2.StatusCode);
200Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode);
219Assert.Equal(HttpStatusCode.OK, resp2.StatusCode);
226Assert.Equal(HttpStatusCode.OK, resp3.StatusCode);
261Assert.Equal(HttpStatusCode.OK, resp2.StatusCode);
262Assert.Equal(HttpStatusCode.OK, resp3.StatusCode);
263Assert.Equal(HttpStatusCode.OK, resp4.StatusCode);
290Assert.Equal(HttpStatusCode.OK, res.StatusCode);
305Assert.Equal(HttpStatusCode.OK, res.StatusCode);
331Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode);
358Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode);
378Assert.Equal(HttpStatusCode.OK, res2.StatusCode);
393Assert.Equal(HttpStatusCode.OK, res.StatusCode);
408Assert.Equal(HttpStatusCode.OK, res.StatusCode);
427Assert.Equal(HttpStatusCode.PreconditionFailed, res2.StatusCode);
RangeHeaderTests.cs (24)
27Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode);
49Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
69Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode);
86Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode);
103Assert.Equal(HttpStatusCode.NotModified, resp.StatusCode);
121Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
139Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
156Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
175Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
194Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
213Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
221Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
240Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
248Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
273Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode);
294Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode);
315Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, resp.StatusCode);
329Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
347Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, resp.StatusCode);
362Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
382Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
404Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
425Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
445Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
StaticFileMiddlewareTests.cs (14)
40Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
74Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
114Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
153Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
189Assert.Equal(HttpStatusCode.OK, response.StatusCode);
228Assert.Equal(HttpStatusCode.OK, response.StatusCode);
270Assert.Equal(HttpStatusCode.OK, response.StatusCode);
320Assert.Equal(HttpStatusCode.OK, response.StatusCode);
363Assert.Equal(HttpStatusCode.OK, response.StatusCode);
411Assert.Equal(HttpStatusCode.OK, response.StatusCode);
432Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
463Assert.Equal(errorCode, response.StatusCode);
481Assert.Equal(HttpStatusCode.OK, response.StatusCode);
540Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
Microsoft.AspNetCore.TestHost.Tests (7)
Microsoft.AspNetCore.Testing.Tests (5)
Microsoft.AspNetCore.Tests (5)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.AspNetCore.WebSockets.Tests (6)
Microsoft.Build.Tasks.Core (1)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Build.Tasks.Feed (5)
Microsoft.DotNet.Deployment.Tasks.Links (17)
Microsoft.DotNet.Helix.Sdk (7)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.DotNet.VersionTools (6)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Polly.Tests (11)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (11)
70Assert.Equal(HttpStatusCode.Created, response.StatusCode);
105Assert.Equal(HttpStatusCode.Created, response.StatusCode);
143Assert.Equal(HttpStatusCode.Created, response.StatusCode);
184Assert.Equal(HttpStatusCode.Created, response.StatusCode);
228Assert.Equal(HttpStatusCode.Created, response.StatusCode);
281Assert.Equal(HttpStatusCode.OK, response.StatusCode);
326Assert.Equal(HttpStatusCode.OK, response.StatusCode);
370Assert.Equal(HttpStatusCode.Created, response.StatusCode);
379Assert.Equal(HttpStatusCode.Created, response.StatusCode);
388Assert.Equal(HttpStatusCode.Created, response.StatusCode);
440Assert.Equal(HttpStatusCode.Created, response.StatusCode);
Microsoft.Extensions.Http.Resilience (3)
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
Microsoft.Extensions.Http.Resilience.Tests (4)
Microsoft.Extensions.Logging.AzureAppServices (2)
Microsoft.Maui.Controls (1)
Negotiate.Client (12)
Controllers\AuthTestController.cs (12)
37if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
58if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out var actionResult)
86if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
109if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
120if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult)
142if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
153if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult)
175if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
186if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult)
206if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out var actionResult)
232if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
243if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out actionResult)
ServerComparison.FunctionalTests (5)
System.Net.Http (36)
System.Net.Requests (1)
System.Net.WebSockets.Client (5)
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (4)
Templates.Blazor.WebAssembly.Tests (4)
Templates.Mvc.Tests (4)
Templates.Tests (7)