1361 references to Contains
Aspire.Dashboard.Tests (6)
Aspire.Hosting.Dapr.Tests (3)
Aspire.Hosting.MongoDB.Tests (12)
MongoDbFunctionalTests.cs (12)
213item => Assert.Contains("The Shawshank Redemption", item.Name),
214item => Assert.Contains("The Godfather", item.Name),
215item => Assert.Contains("The Dark Knight", item.Name),
216item => Assert.Contains("Schindler's List", item.Name)
336item => Assert.Contains("The Shawshank Redemption", item.Name),
337item => Assert.Contains("The Godfather", item.Name),
338item => Assert.Contains("The Dark Knight", item.Name),
339item => Assert.Contains("Schindler's List", item.Name)
365item => Assert.Contains("The Shawshank Redemption", item.Name),
366item => Assert.Contains("The Godfather", item.Name),
367item => Assert.Contains("The Dark Knight", item.Name),
368item => Assert.Contains("Schindler's List", item.Name)
Aspire.Hosting.Testing.Tests (8)
Aspire.Hosting.Tests (3)
Aspire.Microsoft.Data.SqlClient.Tests (3)
Aspire.MySqlConnector.Tests (3)
Aspire.NATS.Net.Tests (3)
Aspire.Npgsql.Tests (3)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.StackExchange.Redis.Tests (4)
Aspire.Workload.Tests (3)
AuthSamples.FunctionalTests (25)
DynamicSchemeTests.cs (12)
40Assert.Contains("New1", content);
41Assert.Contains("NewOne", content);
46Assert.Contains("New1", content);
47Assert.Contains("NewOne", content);
48Assert.Contains("New2", content);
49Assert.Contains("NewTwo", content);
54Assert.Contains("New1", content);
55Assert.Contains("NewOne", content);
56Assert.Contains("New2", content);
58Assert.Contains("UpdateTwo", content);
66Assert.Contains("New2", content);
68Assert.Contains("UpdateTwo", content);
Client.ClientBase.IntegrationTests (1)
Contract.XmlSerializer.IntegrationTests (1)
Diagnostics.EFCore.FunctionalTests (25)
DatabaseErrorPageMiddlewareTest.cs (25)
143Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_NoDbOrMigrationsTitle"), content);
144Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_NoDbOrMigrationsInfo"), content);
145Assert.Contains(typeof(BloggingContext).Name, content);
146Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
147Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
205Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_PendingMigrationsTitle"), content);
206Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_PendingMigrationsInfo"), content);
207Assert.Contains(typeof(BloggingContextWithMigrations).Name, content);
208Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
209Assert.Contains("<li>111111111111111_MigrationOne</li>", content);
210Assert.Contains("<li>222222222222222_MigrationTwo</li>", content);
244Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_PendingChangesTitle"), content);
245Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_PendingChangesInfo"), content);
246Assert.Contains(typeof(BloggingContextWithPendingModelChanges).Name, content);
247Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandCLI").Replace(">", ">"), content);
248Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
249Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandCLI").Replace(">", ">"), content);
250Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
291Assert.Contains("req.open(\"POST\", \"" + JavaScriptEncode(expectedMigrationsEndpoint) + "\", true);", content);
292Assert.Contains("data-assemblyname=\"" + JavaScriptEncode(expectedContextType) + "\"", content);
367Assert.Contains("req.open(\"POST\", \"" + JavaScriptEncode(migrationsEndpoint) + "\", true);", content);
489Assert.Contains("I wrapped your exception", content);
490Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_NoDbOrMigrationsTitle"), content);
491Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_NoDbOrMigrationsInfo"), content);
492Assert.Contains(typeof(BloggingContext).Name, content);
Diagnostics.FunctionalTests (9)
dotnet-svcutil.xmlserializer.IntegrationTests (1)
IIS.FunctionalTests (16)
IIS.LongTests (27)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (23)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
81Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
431Assert.Contains("500.31", responseContent);
432Assert.Contains("Framework: 'Microsoft.NETCore.App', version '2.9.9'", responseContent);
492Assert.Contains("500.37", responseContent);
524Assert.Contains("500.37", responseContent);
776Assert.Contains("InvalidOperationException", content);
777Assert.Contains("TestSite.Program.Main", content);
800Assert.Contains("InvalidOperationException", content);
801Assert.Contains("TestSite.Program.Main", content);
823Assert.Contains("InvalidOperationException", content);
824Assert.Contains("TestSite.Program.Main", content);
825Assert.Contains("From Configure", content);
1032Assert.Contains(expectedLogString, contents);
1065Assert.Contains("500.30", responseText);
1080Assert.Contains("500.0", responseString);
1099Assert.Contains("HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure", responseString);
1122Assert.Contains("500.0", responseString);
1145Assert.Contains("500.30", responseString);
1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync());
1583Assert.Contains(error, await response.Content.ReadAsStringAsync());
1601Assert.Contains(error, responseText);
IIS.NewHandler.FunctionalTests (27)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (23)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
81Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
431Assert.Contains("500.31", responseContent);
432Assert.Contains("Framework: 'Microsoft.NETCore.App', version '2.9.9'", responseContent);
492Assert.Contains("500.37", responseContent);
524Assert.Contains("500.37", responseContent);
776Assert.Contains("InvalidOperationException", content);
777Assert.Contains("TestSite.Program.Main", content);
800Assert.Contains("InvalidOperationException", content);
801Assert.Contains("TestSite.Program.Main", content);
823Assert.Contains("InvalidOperationException", content);
824Assert.Contains("TestSite.Program.Main", content);
825Assert.Contains("From Configure", content);
1032Assert.Contains(expectedLogString, contents);
1065Assert.Contains("500.30", responseText);
1080Assert.Contains("500.0", responseString);
1099Assert.Contains("HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure", responseString);
1122Assert.Contains("500.0", responseString);
1145Assert.Contains("500.30", responseString);
1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync());
1583Assert.Contains(error, await response.Content.ReadAsStringAsync());
1601Assert.Contains(error, responseText);
IIS.NewShim.FunctionalTests (27)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (23)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
81Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
431Assert.Contains("500.31", responseContent);
432Assert.Contains("Framework: 'Microsoft.NETCore.App', version '2.9.9'", responseContent);
492Assert.Contains("500.37", responseContent);
524Assert.Contains("500.37", responseContent);
776Assert.Contains("InvalidOperationException", content);
777Assert.Contains("TestSite.Program.Main", content);
800Assert.Contains("InvalidOperationException", content);
801Assert.Contains("TestSite.Program.Main", content);
823Assert.Contains("InvalidOperationException", content);
824Assert.Contains("TestSite.Program.Main", content);
825Assert.Contains("From Configure", content);
1032Assert.Contains(expectedLogString, contents);
1065Assert.Contains("500.30", responseText);
1080Assert.Contains("500.0", responseString);
1099Assert.Contains("HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure", responseString);
1122Assert.Contains("500.0", responseString);
1145Assert.Contains("500.30", responseString);
1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync());
1583Assert.Contains(error, await response.Content.ReadAsStringAsync());
1601Assert.Contains(error, responseText);
IISExpress.FunctionalTests (47)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (23)
77Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
81Assert.Contains("500.0", await response.Content.ReadAsStringAsync());
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
431Assert.Contains("500.31", responseContent);
432Assert.Contains("Framework: 'Microsoft.NETCore.App', version '2.9.9'", responseContent);
492Assert.Contains("500.37", responseContent);
524Assert.Contains("500.37", responseContent);
776Assert.Contains("InvalidOperationException", content);
777Assert.Contains("TestSite.Program.Main", content);
800Assert.Contains("InvalidOperationException", content);
801Assert.Contains("TestSite.Program.Main", content);
823Assert.Contains("InvalidOperationException", content);
824Assert.Contains("TestSite.Program.Main", content);
825Assert.Contains("From Configure", content);
1032Assert.Contains(expectedLogString, contents);
1065Assert.Contains("500.30", responseText);
1080Assert.Contains("500.0", responseString);
1099Assert.Contains("HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure", responseString);
1122Assert.Contains("500.0", responseString);
1145Assert.Contains("500.30", responseString);
1488Assert.Contains("<a href=\"http://example\"> <cite> http://example </cite></a> and ", await response.Content.ReadAsStringAsync());
1583Assert.Contains(error, await response.Content.ReadAsStringAsync());
1601Assert.Contains(error, responseText);
InMemory.FunctionalTests (2)
Interop.FunctionalTests (3)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.Authentication.Core.Test (13)
AuthenticationServiceTests.cs (12)
24Assert.Contains("base", ex.Message);
63Assert.Contains("base", ex.Message);
78Assert.Contains("base", ex.Message);
125Assert.Contains("uber", ex.Message);
126Assert.Contains("signin", ex.Message);
129Assert.Contains("uber", ex.Message);
130Assert.Contains("signin", ex.Message);
148Assert.Contains("uber", ex.Message);
149Assert.Contains("signout", ex.Message);
169Assert.Contains("cannot be used for SignOutAsync", ex.Message);
171Assert.Contains("cannot be used for SignInAsync", ex.Message);
226Assert.Contains("cannot be used for SignInAsync", ex.Message);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
Microsoft.AspNetCore.Authentication.Test (131)
CookieTests.cs (23)
140Assert.Contains("; path=/", setCookie);
141Assert.Contains("; httponly", setCookie);
142Assert.Contains("; samesite=", setCookie);
273Assert.Contains("; path=/", setCookie);
274Assert.Contains("; httponly", setCookie);
275Assert.Contains("; samesite=", setCookie);
347Assert.Contains("; secure", setCookie);
375Assert.Contains("TestCookie=", setCookie1);
376Assert.Contains(" path=/foo", setCookie1);
377Assert.Contains(" domain=another.com", setCookie1);
378Assert.Contains(" secure", setCookie1);
379Assert.Contains(" samesite=none", setCookie1);
380Assert.Contains(" httponly", setCookie1);
381Assert.Contains(" extension0", setCookie1);
382Assert.Contains(" extension1=value1", setCookie1);
397Assert.Contains("SecondCookie=", setCookie2);
398Assert.Contains(" path=/base", setCookie2);
399Assert.Contains(" samesite=strict", setCookie2);
555Assert.Contains(".AspNetCore.Cookies=; expires=", transaction2.SetCookie);
593Assert.Contains(".AspNetCore.Cookies=; expires=", transaction4.SetCookie[0]);
1166Assert.Contains("path=/base", transaction1.SetCookie);
1414Assert.Contains(".AspNetCore.Cookies=; expires=", transaction.SetCookie[0]);
1437Assert.Contains(".AspNetCore.Cookies=; expires=", transaction.SetCookie[0]);
FacebookTests.cs (27)
112Assert.Contains("custom=test", query);
142Assert.Contains("scope=foo,bar", res.Headers.Location.Query);
174Assert.Contains("scope=baz,qux", res.Headers.Location.Query);
206Assert.Contains("scope=baz,qux", res.Headers.Location.Query);
233Assert.Contains("https://www.facebook.com/v14.0/dialog/oauth", location);
234Assert.Contains("response_type=code", location);
235Assert.Contains("client_id=", location);
236Assert.Contains("redirect_uri=" + UrlEncoder.Default.Encode("http://example.com/base/signin-facebook"), location);
237Assert.Contains("scope=", location);
238Assert.Contains("state=", location);
266Assert.Contains("https://www.facebook.com/v14.0/dialog/oauth", location);
267Assert.Contains("response_type=code", location);
268Assert.Contains("client_id=", location);
269Assert.Contains("redirect_uri=" + UrlEncoder.Default.Encode("http://example.com/signin-facebook"), location);
270Assert.Contains("scope=", location);
271Assert.Contains("state=", location);
301Assert.Contains("https://www.facebook.com/v14.0/dialog/oauth", location);
302Assert.Contains("response_type=code", location);
303Assert.Contains("client_id=", location);
304Assert.Contains("redirect_uri=", location);
305Assert.Contains("scope=", location);
306Assert.Contains("state=", location);
307Assert.Contains("code_challenge=", location);
308Assert.Contains("code_challenge_method=S256", location);
369Assert.Contains("fields=email,timezone,picture", finalUserInfoEndpoint);
370Assert.Contains("&access_token=", finalUserInfoEndpoint);
371Assert.Contains("&appsecret_proof=b7fb6d5a4510926b4af6fe080497827d791dc45fe6541d88ba77bdf6e8e208c6&", finalUserInfoEndpoint);
GoogleTests.cs (16)
153Assert.Contains("&scope=" + UrlEncoder.Default.Encode("openid profile email"), query);
336Assert.Contains("custom=test", query);
561Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]);
562Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
724Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]);
725Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
764Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]);
765Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
885Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete
886Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
929Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete
930Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
973Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete
974Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
1010Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]); // Delete
1011Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
MicrosoftAccountTests.cs (14)
67Assert.Contains("custom=test", query);
121Assert.Contains("https://login.microsoftonline.com/common/oauth2/v2.0/authorize", location);
122Assert.Contains("response_type=code", location);
123Assert.Contains("client_id=", location);
124Assert.Contains("redirect_uri=", location);
125Assert.Contains("scope=", location);
126Assert.Contains("state=", location);
127Assert.Contains("code_challenge=", location);
128Assert.Contains("code_challenge_method=S256", location);
146Assert.Contains("scope=foo%20bar", res.Headers.Location.Query);
164Assert.Contains("scope=baz%20qux", res.Headers.Location.Query);
182Assert.Contains("scope=baz%20qux", res.Headers.Location.Query);
246Assert.Contains($".AspNetCore.Correlation.{correlationValue}", transaction.SetCookie[0]);
247Assert.Contains(".AspNetCore." + TestExtensions.CookieAuthenticationScheme, transaction.SetCookie[1]);
OpenIdConnect\OpenIdConnectChallengeTests.cs (18)
74Assert.Contains("code_challenge=", res.Headers.Location.Query);
75Assert.Contains("code_challenge_method=S256", res.Headers.Location.Query);
438Assert.Contains("samesite=none", transaction.SetCookie.First());
534Assert.Contains("prompt=consent", res.Headers.Location.Query);
558Assert.Contains("prompt=login", res.Headers.Location.Query);
580Assert.Contains("prompt=login", res.Headers.Location.Query);
604Assert.Contains("scope=baz%20qux", res.Headers.Location.Query);
628Assert.Contains("scope=baz%20qux", res.Headers.Location.Query);
652Assert.Contains("max_age=1234", res.Headers.Location.Query);
674Assert.Contains("max_age=1234", res.Headers.Location.Query);
695Assert.Contains("prompt=login&audience=https%3A%2F%2Fapi.example.com", res.Headers.Location.Query);
723Assert.Contains("request_uri=my_reference_value", res.Headers.Location.Query);
724Assert.Contains("client_id=Test%20Id", res.Headers.Location.Query);
817Assert.Contains("redirect_uri", res.Headers.Location.Query);
818Assert.Contains("scope", res.Headers.Location.Query);
851Assert.Contains("request_uri=request_uri_from_event", res.Headers.Location.Query);
917Assert.Contains("request_uri=my_reference_value", res.Headers.Location.Query);
918Assert.Contains("client_id=Test%20Id", res.Headers.Location.Query);
TwitterTests.cs (13)
73Assert.Contains("custom=test", query);
183Assert.Contains("https://api.twitter.com/oauth/authenticate?oauth_token=", location);
211Assert.Contains("https://api.twitter.com/oauth/authenticate?oauth_token=", location);
261Assert.Contains("https://api.twitter.com/oauth/authenticate?oauth_token=", location);
368Assert.Contains("https://api.twitter.com/oauth/authenticate?oauth_token=", location);
514Assert.Contains("include_email=true", finalVerifyCredentialsEndpoint);
516Assert.Contains("oauth_consumer_key=", finalAuthorizationParameter);
517Assert.Contains("oauth_nonce=", finalAuthorizationParameter);
518Assert.Contains("oauth_signature=", finalAuthorizationParameter);
519Assert.Contains("oauth_signature_method=", finalAuthorizationParameter);
520Assert.Contains("oauth_timestamp=", finalAuthorizationParameter);
521Assert.Contains("oauth_token=", finalAuthorizationParameter);
522Assert.Contains("oauth_version=", finalAuthorizationParameter);
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (15)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Tests (7)
Microsoft.AspNetCore.Components.Web.Tests (7)
Microsoft.AspNetCore.Components.WebViewE2E.Test (1)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (5)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (7)
Microsoft.AspNetCore.FunctionalTests (1)
Microsoft.AspNetCore.Hosting.Tests (5)
Microsoft.AspNetCore.Http.Extensions.Tests (11)
ParameterBindingMethodCacheTests.cs (6)
559Assert.Contains($"bool TryParse(string, IFormatProvider, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})", ex.Message);
560Assert.Contains($"bool TryParse(string, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})", ex.Message);
621Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}> BindAsync(HttpContext context, ParameterInfo parameter)", ex.Message);
622Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}> BindAsync(HttpContext context)", ex.Message);
623Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}?> BindAsync(HttpContext context, ParameterInfo parameter)", ex.Message);
624Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}?> BindAsync(HttpContext context)", ex.Message);
Microsoft.AspNetCore.Http.Tests (20)
ResponseCookiesTest.cs (20)
49Assert.Contains("path=/", cookieHeaderValues[0]);
50Assert.Contains("samesite=none", cookieHeaderValues[0]);
73Assert.Contains("path=/", cookieHeaderValues[0]);
74Assert.Contains("simple;", cookieHeaderValues[0]);
94Assert.Contains("path=/", cookieHeaderValues[0]);
95Assert.Contains("expires=Thu, 01 Jan 1970 00:00:00 GMT", cookieHeaderValues[0]);
96Assert.Contains("simple;", cookieHeaderValues[0]);
113Assert.Contains("path=/", cookieHeaderValues[0]);
114Assert.Contains("expires=Thu, 01 Jan 1970 00:00:00 GMT", cookieHeaderValues[0]);
144Assert.All(deletedCookies, cookie => Assert.Contains("expires=Thu, 01 Jan 1970 00:00:00 GMT", cookie));
172Assert.All(deletedCookies, cookie => Assert.Contains("expires=Thu, 01 Jan 1970 00:00:00 GMT", cookie));
199Assert.Contains("path=/", cookieHeaderValues[0]);
200Assert.Contains("expires=Thu, 01 Jan 1970 00:00:00 GMT", cookieHeaderValues[0]);
201Assert.Contains("secure", cookieHeaderValues[0]);
202Assert.Contains("httponly", cookieHeaderValues[0]);
203Assert.Contains("samesite", cookieHeaderValues[0]);
204Assert.Contains("extension", cookieHeaderValues[0]);
221Assert.Contains("path=/", cookieHeaderValues[0]);
222Assert.Contains("expires=Thu, 01 Jan 1970 00:00:00 GMT", cookieHeaderValues[0]);
240Assert.Contains($"max-age={maxAgeTime.TotalSeconds}", cookieHeaderValues[0]);
Microsoft.AspNetCore.HttpLogging.Tests (9)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Microsoft.AspNetCore.Identity.InMemory.Test (5)
Microsoft.AspNetCore.Identity.Test (2)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.InternalTesting.Tests (4)
Microsoft.AspNetCore.Localization.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.Core.Test (20)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (15)
764Assert.Contains("The following errors occurred with attribute routing information:", ex.Message);
765Assert.Contains("Error 1:", ex.Message);
766Assert.Contains("Attribute routes with the same name 'Products' must have the same template:", ex.Message);
767Assert.Contains($"Action: '{sameNameType.FullName}.Get ({assemblyName})' - Template: 'Products'", ex.Message);
768Assert.Contains($"Action: '{sameNameType.FullName}.Get ({assemblyName})' - Template: 'Products/{{id}}'", ex.Message);
769Assert.Contains($"Action: '{sameNameType.FullName}.Put ({assemblyName})' - Template: 'Products/{{id}}'", ex.Message);
770Assert.Contains($"Action: '{sameNameType.FullName}.Post ({assemblyName})' - Template: 'Products'", ex.Message);
771Assert.Contains($"Action: '{sameNameType.FullName}.Delete ({assemblyName})' - Template: 'Products/{{id}}'", ex.Message);
772Assert.Contains("Error 2:", ex.Message);
773Assert.Contains("Attribute routes with the same name 'Items' must have the same template:", ex.Message);
774Assert.Contains($"Action: '{sameNameType.FullName}.GetItems ({assemblyName})' - Template: 'Items/{{id}}'", ex.Message);
775Assert.Contains($"Action: '{sameNameType.FullName}.PostItems ({assemblyName})' - Template: 'Items'", ex.Message);
776Assert.Contains($"Action: '{sameNameType.FullName}.PutItems ({assemblyName})' - Template: 'Items/{{id}}'", ex.Message);
777Assert.Contains($"Action: '{sameNameType.FullName}.DeleteItems ({assemblyName})' - Template: 'Items/{{id}}'", ex.Message);
778Assert.Contains($"Action: '{sameNameType.FullName}.PatchItems ({assemblyName})' - Template: 'Items'", ex.Message);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (10)
Microsoft.AspNetCore.Mvc.FunctionalTests (69)
ErrorPageTests.cs (15)
69Assert.Contains($"{action}.cshtml", content);
70Assert.Contains(expected, content);
104Assert.Contains($"{action}.cshtml", content);
105Assert.Contains(expected, content);
125Assert.Contains("_ViewImports.cshtml", content);
126Assert.Contains(expectedMessage, content);
127Assert.Contains(PreserveCompilationContextMessage, content);
128Assert.Contains(expectedCompilationContent, content);
145Assert.Contains("RuntimeError.cshtml", content);
146Assert.Contains(expectedMessage, content);
163Assert.Contains("Loader Exceptions:", content);
164Assert.Contains(expectedMessage, content);
180Assert.Contains(aggregateException, content);
181Assert.Contains(nullReferenceException, content);
182Assert.Contains(indexOutOfRangeException, content);
InputValidationTests.cs (15)
54Assert.Contains("[OptionalProp:0]", responseText);
55Assert.Contains("[RequiredProp:1]", responseText);
56Assert.Contains("[BindRequiredProp:2]", responseText);
57Assert.Contains("[RequiredAndBindRequiredProp:3]", responseText);
58Assert.Contains("[OptionalStringLengthProp:]", responseText);
59Assert.Contains("[OptionalRangeDisplayNameProp:0]", responseText);
60Assert.Contains("[UnboundRequiredProp:0]", responseText);
61Assert.Contains("[UnboundBindRequiredProp:0]", responseText);
62Assert.Contains("[BindNeverRequiredProp:]", responseText);
63Assert.Contains("[optionalParam:0]", responseText);
64Assert.Contains("[requiredParam:4]", responseText);
65Assert.Contains("[bindRequiredParam:5]", responseText);
66Assert.Contains("[requiredAndBindRequiredParam:6]", responseText);
67Assert.Contains("[optionalStringLengthParam:]", responseText);
68Assert.Contains("[optionalRangeDisplayNameParam:0]", responseText);
RazorPageModelTest.cs (10)
56Assert.Contains("Updated: True", content);
57Assert.Contains("Name = Overriden", content);
82Assert.Contains("Validation: success", content.Trim());
107Assert.Contains("Validation: fail", content);
108Assert.Contains("The field Age must be between 0 and 99.", content);
132Assert.Contains("Updated: True", content);
133Assert.Contains("Name = Overriden", content);
158Assert.Contains("Validation: success", content.Trim());
183Assert.Contains("Validation: fail", content);
184Assert.Contains("The field Age must be between 0 and 99.", content);
RazorPagesWithBasePathTest.cs (11)
192Assert.Contains(expected, response.Trim());
421Assert.Contains("<h2>User</h2>", content);
450Assert.Contains("is required.", content);
507Assert.Contains(
519Assert.Contains("Name is required", response);
520Assert.Contains("18 ≤ Age ≤ 60", response);
530Assert.Contains("User name is required", response);
531Assert.Contains("Password and confirm password do not match.", response);
541Assert.Contains("Name is required", response);
551Assert.Contains("This page is served from RazorPagesClassLibrary", response);
561Assert.Contains("This page is overriden by RazorPagesWebSite", response);
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.Routing.Tests (6)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (13)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.Session.Tests (19)
SessionTests.cs (19)
153Assert.Contains("; secure", values.First());
369Assert.Contains("started", sessionLogMessages[0].State.ToString());
371Assert.Contains("stored", sessionLogMessages[1].State.ToString());
435Assert.Contains("started", sessionLogMessages[0].State.ToString());
436Assert.Contains("stored", sessionLogMessages[1].State.ToString());
437Assert.Contains("expired", sessionLogMessages[2].State.ToString());
683Assert.Contains("Session cache read exception", message.State.ToString());
732Assert.Contains("Session cache read exception", message.State.ToString());
780Assert.Contains("Loading the session timed out.", message.State.ToString());
881Assert.Contains("Session started", sessionLogMessage.State.ToString());
886Assert.Contains("Error closing the session.", sessionMiddlewareLogMessage.State.ToString());
944Assert.Contains("Session started", sessionLogMessages[0].State.ToString());
947Assert.Contains("Committing the session timed out.", sessionLogMessages[1].State.ToString());
952Assert.Contains("Committing the session was canceled.", sessionMiddlewareLogs[0].State.ToString());
1011Assert.Contains("Session started", sessionLogMessages[0].State.ToString());
1014Assert.Contains("Session stored", sessionLogMessages[1].State.ToString());
1075Assert.Contains("Session started", sessionLogMessages[0].State.ToString());
1078Assert.Contains("Session stored", sessionLogMessages[1].State.ToString());
1126Assert.Contains("Error closing the session.", message.State.ToString());
Microsoft.AspNetCore.Shared.Tests (12)
CommandLineApplicationTests.cs (10)
72Assert.Contains("three", ex.Message);
113Assert.Contains("test2", ex.Message);
165Assert.Contains($"The last argument 'first' accepts multiple values. No more argument can be added.",
205Assert.Contains($"Missing value for option '{first.LongName}'", ex.Message);
816Assert.Contains("-a|--option-a", subcmd.GetHelpText());
1033Assert.Contains("ninja-app", help);
1049Assert.Contains("--ayuda-me", help);
1061Assert.Contains("Usage: proxy-command [options] [[--] <arg>...]", app.GetHelpText());
1079Assert.Contains(app.ExtendedHelpText, app.GetHelpText());
1099Assert.Contains(expectedOutData, outData);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (10)
HubConnectionTests.cs (10)
1373Assert.Contains("Connection closed with an error.", exception.Message);
1376Assert.Contains("Connection closed with an error.", hubException.Message);
1377Assert.Contains(exceptionSubstring, hubException.Message);
1391Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message);
1427Assert.Contains("Connection closed with an error.", exception.Message);
1430Assert.Contains("Connection closed with an error.", hubException.Message);
1431Assert.Contains(exceptionSubstring, hubException.Message);
1445Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message);
1622Assert.Contains($"{majorVersion}.{minorVersion}", userAgent);
1897Assert.Contains("Negotiate Authentication doesn't work with HTTP/2 or higher.", ex.Message);
Microsoft.AspNetCore.SignalR.Client.Tests (5)
Microsoft.AspNetCore.SignalR.Tests (8)
Microsoft.AspNetCore.TestHost.Tests (2)
Microsoft.AspNetCore.Tests (8)
Microsoft.Build.CommandLine.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (11)
Microsoft.Build.Engine.UnitTests (64)
Construction\ElementLocation_Tests.cs (10)
45Assert.Contains("RegularElementLocation", location.GetType().FullName);
58Assert.Contains("RegularElementLocation", location.GetType().FullName);
71Assert.Contains("RegularElementLocation", location.GetType().FullName);
172Assert.Contains("RegularElementLocation", location.GetType().FullName);
190Assert.Contains("SmallElementLocation", deserializedLocation.GetType().FullName);
203Assert.Contains("SmallElementLocation", location.GetType().FullName);
248Assert.Contains("SmallElementLocation", location.GetType().FullName);
261Assert.Contains("SmallElementLocation", location.GetType().FullName);
274Assert.Contains("SmallElementLocation", location.GetType().FullName);
292Assert.Contains("SmallElementLocation", location.GetType().FullName);
Construction\SolutionProjectGenerator_Tests.cs (14)
337Assert.Contains(text, logger.FullLog); // "Log should contain the regular message"
1115Assert.Contains("{6185CC21-BE89-448A-B3C0-D1C27112E595}", solutionConfigurationContents);
1118Assert.Contains("CSConfig1|AnyCPU", solutionConfigurationContents);
1122Assert.Contains("{A6F99D27-47B9-4EA4-BFC9-25157CBDC281}", solutionConfigurationContents);
1124Assert.Contains("VCConfig1|Win32", solutionConfigurationContents);
1134Assert.Contains("{6185CC21-BE89-448A-B3C0-D1C27112E595}", solutionConfigurationContents);
1135Assert.Contains("CSConfig2|AnyCPU", solutionConfigurationContents);
1183Assert.Contains(@"BuildProjectInSolution=""" + bool.TrueString + @"""", solutionConfigurationContents);
1228Assert.Contains(@"BuildProjectInSolution=""" + bool.FalseString + @"""", solutionConfigurationContents);
1291Assert.Contains("<SolutionConfiguration>", item.GetMetadata("Content"));
1297Assert.Contains("<SolutionConfiguration>", item.GetMetadata("Content"));
1676Assert.Contains("'$(Configuration)' == 'Release'", msbuildProject.Targets["Build"].Condition);
1677Assert.Contains("'$(Configuration)' == 'Debug'", msbuildProject.Targets["Build"].Condition);
1906Assert.Contains("%abtest", instances[0].GetItems("ProjectReference").ElementAt(0).EvaluatedInclude);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (4)
Microsoft.Build.Tasks.UnitTests (69)
XslTransformation_Tests.cs (12)
196Assert.Contains("MSB3701", engine.Log); // "The output should contain MSB3701 error message at missing Xsl params test"
245Assert.Contains("MSB3701", engine.Log); // "The output should contain MSB3701 error message at missing Xml params test"
276Assert.Contains("MSB3701", engine.Log); // "The output should contain MSB3701 error message"
310Assert.Contains("MSB3701", engine.Log);
344Assert.Contains("MSB3701", engine.Log); // "The output should contain MSB3701 error message at no params test"
416Assert.Contains("param 1: 1param 2: 2", fileContents);
593Assert.Contains("The '$' character", e.Message);
654Assert.Contains("MSB3703", engine.Log);
683Assert.Contains("MSB3704", engine.Log);
744Assert.Contains("'<'", e.Message);
777Assert.Contains("MSB3701", e.Message);
842Assert.Contains("error?", e.Message);
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (32)
CommandLineTests.cs (23)
6078Assert.Contains(((int)ErrorCode.ERR_StdInOptionProvidedButConsoleInputIsNotRedirected).ToString(), result.Output);
6106Assert.Contains(((int)ErrorCode.WRN_FileAlreadyIncluded).ToString(), result.Output);
6949Assert.Contains("error CS5001:", outWriter.ToString().Trim());
8920Assert.Contains($"error CS2012: Cannot open '{libDll.Path}' for writing", outWriter.ToString());
8939Assert.Contains($"error CS2012: Cannot open '{libDll.Path}' for writing", outWriter.ToString());
8976Assert.Contains($"error CS0016: Could not write to output file '{exePath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
8999Assert.Contains($"error CS0016: Could not write to output file '{pdbPath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
9072Assert.Contains($"error CS2012: Cannot open '{exePath}' for writing", outWriter.ToString());
13423Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", outWriter.ToString());
13456Assert.Contains(expectedOutput, output);
13502Assert.Contains(expectedOutput, output);
13552Assert.Contains(expectedOutput, output);
13583Assert.Contains($"{expectedDiagnosticSeverity} {WarningDiagnosticAnalyzer.Warning01.Id}", output);
13659Assert.Contains($"{prefix} {descriptor.Id}: {descriptor.MessageFormat}", outWriter.ToString());
13783Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", output);
14265Assert.Contains("CS0016:", output);
14357Assert.Contains("error CS2006: Command-line syntax error: Missing '<text>' for '/generatedfilesout:' option", output);
14814Assert.Contains("CS8785: Generator 'CallbackGenerator' failed to generate source.", output);
15289Assert.Contains($"error {diagnosticId}", output);
15293Assert.Contains($"warning {diagnosticId}", output);
15325Assert.Contains("CS8850", output); // ref's net fx
15326Assert.Contains("CS8033", output); // no analyzers in assembly
15330Assert.Contains("CS8033", output);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (13)
CodeGen\CodeGenTupleTest.cs (11)
5796Assert.Contains(CodeAnalysisResources.TupleElementNameCountMismatch, e.Message);
5801Assert.Contains(CodeAnalysisResources.TupleElementLocationCountMismatch, e.Message);
6284Assert.Contains(CodeAnalysisResources.TupleUnderlyingTypeMustBeTupleCompatible, e.Message);
6297Assert.Contains(CodeAnalysisResources.TupleElementNameEmpty, e.Message);
6298Assert.Contains("elementNames[1]", e.Message);
6315Assert.Contains(CSharpResources.NotACSharpSymbol, e.Message);
6332Assert.Contains(CSharpResources.NotACSharpSymbol, e.Message);
6803Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
6843Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
6872Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
6912Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (31)
CommandLineTests.vb (26)
367Assert.Contains("\Test Path (123)\hellovb.vb(6) : warning BC40008: 'Public Property x As Integer' is obsolete.", output.ToString())
368Assert.Contains("\Test Path (123)\hellovb.vb(6) : error BC30512: Option Strict On disallows implicit conversions from 'Double' to 'Integer'.", output.ToString())
369Assert.Contains("\Test Path (123)\hellovb.vb(7) : error BC30451: 'asdf' is not declared. It may be inaccessible due to its protection level.", output.ToString())
3619Assert.Contains("vbc : error BC2017: could not find library 'Microsoft.VisualBasic.dll'", output)
7689Assert.Contains("warning BC40000: 'Program.C1' is obsolete: 'Do not use C1'. (https://example.org/BC40000)", output)
7690Assert.Contains("error BC30668: 'Program.C2' is obsolete: 'Do not use C2'. (https://example.org/2/BC30668)", output)
7691Assert.Contains("error OBSOLETEC3: 'Program.C3' is obsolete: 'Do not use C3'. (https://example.org/3/OBSOLETEC3)", output)
7692Assert.Contains("warning OBSOLETEC4: 'Program.C4' is obsolete: 'Do not use C4'. (https://example.org/4)", output)
7711Assert.Contains("warning Warning04: Throwing a diagnostic for types declared (https://example.org/analyzer)", output)
9125Assert.Contains("error BC30420:", output.ToString())
9980Assert.Contains(expectedOutput, output)
10032Assert.Contains(expectedOutput, output)
10089Assert.Contains(expectedOutput, output)
10125Assert.Contains($"{expectedODiagnosticSeverity} {WarningDiagnosticAnalyzer.Warning01.Id}", output)
10126Assert.Contains($"{expectedODiagnosticSeverity} {WarningDiagnosticAnalyzer.Warning03.Id}", output)
10204Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", output)
10485Assert.Contains($"error {diagnosticId}", output)
10487Assert.Contains($"warning {diagnosticId}", output)
10515Assert.Contains("CS8850", output)
10516Assert.Contains("CS8033", output)
10520Assert.Contains("CS8033", output)
10563Assert.Contains("BC2012:", output)
10606Assert.Contains("vbc : error BC2006: option 'generatedfilesout' requires ':<dir>'", output)
10730Assert.Contains("error BC37328: The diagnosticId argument to the 'Experimental' attribute must be a valid identifier", outWriter.ToString())
10773Assert.Contains("warning DiagID: 'C' is for evaluation purposes only and is subject to change or removal in future updates.", outWriter.ToString())
10819Assert.Contains("warning DiagID: 'C' is for evaluation purposes only and is subject to change or removal in future updates.", outWriter.ToString())
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (15)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Microsoft.Data.Analysis.Interactive.Tests (3)
Microsoft.DotNet.Build.Tasks.Feed.Tests (9)
PublishToSymbolServerTest.cs (9)
166Assert.Contains("Symbol package count: 1", message.Message);
167Assert.Contains("Loose symbol file count: 1", message.Message);
181Assert.Contains("project dotnettest", registerLog.Message);
182Assert.Contains("environment PPE", registerLog.Message);
183Assert.Contains("visibility Public", registerLog.Message);
184Assert.Contains("to last 3650 days", registerLog.Message);
299Assert.Contains($"Failed to download local file '{path}' after {publishTask.RetryHandler.MaxAttempts} attempts. See inner exception for details.", actualError.Message);
342Assert.Contains($"Failed to download local file '{path}' after {publishTask.RetryHandler.MaxAttempts} attempts. See inner exception for details.", actualError.Message);
447Assert.Contains($"Failed to get container id after {publishTask.RetryHandler.MaxAttempts} attempts. See inner exception for details,", actualError.Message);
Microsoft.DotNet.Build.Tasks.Workloads.Tests (70)
CreateVisualStudioWorkloadTests.cs (32)
98Assert.Contains("package name=microsoft.net.sdk.emscripten", componentSwr);
103Assert.Contains("package name=microsoft.net.sdk.emscripten.pre", previewComponentSwr);
106Assert.Contains("vs.package.type=component", componentSwr);
107Assert.Contains("vs.package.outOfSupport=yes", componentSwr);
108Assert.Contains("isUiGroup=yes", componentSwr);
109Assert.Contains("version=5.6.7.8", componentSwr);
111Assert.Contains("vs.package.type=component", previewComponentSwr);
112Assert.Contains("isUiGroup=yes", previewComponentSwr);
113Assert.Contains("version=5.6.7.8", previewComponentSwr);
118Assert.Contains("vs.dependency id=Microsoft.Emscripten.Node.6.0.4", componentSwr);
119Assert.Contains("vs.dependency id=Microsoft.Emscripten.Python.6.0.4", componentSwr);
120Assert.Contains("vs.dependency id=Microsoft.Emscripten.Sdk.6.0.4", componentSwr);
123Assert.Contains("vs.dependency id=Microsoft.Emscripten.Node.6.0.4", previewComponentSwr);
124Assert.Contains("vs.dependency id=Microsoft.Emscripten.Python.6.0.4", previewComponentSwr);
125Assert.Contains("vs.dependency id=Microsoft.Emscripten.Sdk.6.0.4", previewComponentSwr);
129Assert.Contains("package name=Emscripten.Manifest-6.0.200", manifestMsiSwr);
130Assert.Contains("vs.package.type=msi", manifestMsiSwr);
131Assert.Contains("vs.package.chip=x64", manifestMsiSwr);
145Assert.Contains("package name=Microsoft.Emscripten.Python.6.0.4", packMsiSwr);
146Assert.Contains("vs.package.chip=x64", packMsiSwr);
147Assert.Contains("vs.package.outOfSupport=yes", packMsiSwr);
233Assert.Contains("package name=microsoft.net.sdk.emscripten", componentSwr);
236Assert.Contains("vs.package.type=component", componentSwr);
237Assert.Contains("isUiGroup=yes", componentSwr);
238Assert.Contains("version=5.6.7.8", componentSwr);
240Assert.Contains("vs.package.outOfSupport=no", componentSwr);
245Assert.Contains("vs.dependency id=Microsoft.Emscripten.Node.6.0.4", componentSwr);
246Assert.Contains("vs.dependency id=Microsoft.Emscripten.Python.6.0.4", componentSwr);
247Assert.Contains("vs.dependency id=Microsoft.Emscripten.Sdk.6.0.4", componentSwr);
251Assert.Contains("package name=Emscripten.Manifest-6.0.200", manifestMsiSwr);
252Assert.Contains("vs.package.type=msi", manifestMsiSwr);
254Assert.Contains("vs.package.machineArch=arm64", manifestMsiSwr);
SwixComponentTests.cs (26)
32Assert.Contains("package name=microsoft.net.sdk.blazorwebassembly.aot", componentSwr);
33Assert.Contains("version=1.0.0", componentSwr);
36Assert.Contains(@"title=""Blazor WebAssembly AOT workload""", componentResSwr);
37Assert.Contains(@"description=""Blazor WebAssembly AOT workload""", componentResSwr);
38Assert.Contains(@"category="".NET""", componentResSwr);
61Assert.Contains("package name=microsoft.net.sdk.blazorwebassembly.aot", componentSwr);
62Assert.Contains("version=4.5.6", componentSwr);
63Assert.Contains("isAdvertisedPackage=yes", componentSwr);
66Assert.Contains(@"title=""Blazor WebAssembly AOT workload""", componentResSwr);
67Assert.Contains(@"description=""A long wordy description about Blazor.""", componentResSwr);
68Assert.Contains(@"category=""WebAssembly""", componentResSwr);
90Assert.Contains("package name=microsoft.net.sdk.blazorwebassembly.aot", componentSwr);
91Assert.Contains("version=4.5.6", componentSwr);
92Assert.Contains("isAdvertisedPackage=no", componentSwr);
95Assert.Contains(@"title=""Blazor WebAssembly AOT workload""", componentResSwr);
96Assert.Contains(@"description=""A long wordy description about Blazor.""", componentResSwr);
97Assert.Contains(@"category=""WebAssembly""", componentResSwr);
116Assert.Contains("vs.dependency id=MSFT.MonoAOTCompiler.Task.6.0.0-preview.4.21201.1", componentSwr);
130Assert.Contains(@"package name=microsoft.net.runtime.ios", componentSwr);
136Assert.Contains(@"vs.dependency id=runtimes.ios", componentSwr);
160Assert.Contains(@"title=""AOT""", componentResSwr);
161Assert.Contains(@"description=""A long wordy description.""", componentResSwr);
162Assert.Contains(@"category=""Compilers, build tools, and runtimes""", componentResSwr);
175Assert.Contains(@"vs.dependency id=maui.mobile", componentSwr);
176Assert.Contains(@"vs.dependency id=maui.desktop", componentSwr);
193Assert.Contains($"vs.dependency id={packGroupId}", componentSwr);
Microsoft.DotNet.Open.Api.Tools.Tests (52)
Microsoft.DotNet.XUnitAssert.Tests (5)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.Tests (14)
Microsoft.Extensions.ApiDescription.Client.Tests (27)
TargetTest.cs (27)
80Assert.Contains($"Compile: {Path.Combine(_temporaryDirectory.Root, "obj", "azureMonitorClient.cs")}", process.Output);
81Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output);
103Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.ts")}", process.Output);
104Assert.Contains($"TypeScriptCompile: {Path.Combine("obj", "azureMonitorClient.ts")}", process.Output);
123Assert.Contains($"Compile: {Path.Combine(_temporaryDirectory.Root, "obj", "azureMonitorClient.cs")}", process.Output);
124Assert.Contains($"Compile: {Path.Combine(_temporaryDirectory.Root, "obj", "NSwagClient.cs")}", process.Output);
125Assert.Contains($"Compile: {Path.Combine(_temporaryDirectory.Root, "obj", "swashbuckleClient.cs")}", process.Output);
126Assert.Contains($"FileWrites: {Path.Combine("obj", "azureMonitorClient.cs")}", process.Output);
127Assert.Contains($"FileWrites: {Path.Combine("obj", "NSwagClient.cs")}", process.Output);
128Assert.Contains($"FileWrites: {Path.Combine("obj", "swashbuckleClient.cs")}", process.Output);
149Assert.Contains($"Compile: {Path.Combine("obj", "azureMonitorClient.cs", "Generated1.cs")}", process.Output);
150Assert.Contains($"Compile: {Path.Combine("obj", "azureMonitorClient.cs", "Generated2.cs")}", process.Output);
151Assert.Contains(
154Assert.Contains(
176Assert.Contains(
201Assert.Contains(
226Assert.Contains(
253Assert.Contains(
278Assert.Contains(
303Assert.Contains(
328Assert.Contains(
355Assert.Contains(
379Assert.Contains(
385Assert.Contains(
391Assert.Contains(
420Assert.Contains(
426Assert.Contains(
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Compliance.Testing.Tests (7)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (10)
89Assert.Contains("/sys/fs/cgroup/memory/memory.stat", r.Message);
90Assert.Contains("total_inactive_file", r.Message);
116Assert.Contains("/sys/fs/cgroup/memory/memory.usage_in_bytes", r.Message);
135Assert.Contains("lesser than", r.Message);
161Assert.Contains("/proc/meminfo", r.Message);
235Assert.Contains("/sys/fs/cgroup/cpuset/cpuset.cpus", r.Message);
256Assert.Contains("/sys/fs/cgroup/cpuset/cpuset.cpus", r.Message);
284Assert.Contains("/sys/fs/cgroup/cpu/cpu.cfs_", r.Message);
334Assert.Contains("proc/stat", r.Message);
351Assert.Contains("/sys/fs/cgroup/cpu/cpu.shares", r.Message);
Microsoft.Extensions.Diagnostics.Testing.Tests (16)
Logging\FakeLogCollectorTests.cs (16)
125Assert.Contains("trace] Hello world!", output.Last);
128Assert.Contains("debug] Hello world!", output.Last);
131Assert.Contains("info] Hello world!", output.Last);
134Assert.Contains("warn] Hello world!", output.Last);
137Assert.Contains("error] Hello world!", output.Last);
140Assert.Contains("crit] Hello world!", output.Last);
143Assert.Contains("none] Hello world!", output.Last);
146Assert.Contains("invld] Hello world!", output.Last);
157Assert.Contains("trace] Hello world!", output.Last);
160Assert.Contains("debug] Hello world!", output.Last);
163Assert.Contains("info] Hello world!", output.Last);
166Assert.Contains("warn] Hello world!", output.Last);
169Assert.Contains("error] Hello world!", output.Last);
172Assert.Contains("crit] Hello world!", output.Last);
175Assert.Contains("none] Hello world!", output.Last);
178Assert.Contains("invld] Hello world!", output.Last);
Microsoft.Extensions.SecretManager.Tools.Tests (28)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.Telemetry.Tests (9)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (3)
Microsoft.JSInterop.Tests (5)
Microsoft.ML.Core.Tests (2)
Microsoft.ML.Tests (24)
SvmLightTests.cs (11)
247Assert.Contains("Duplicate keys found in dataset", ex.InnerException.Message);
362Assert.Contains("Encountered 0 index while parsing a 1-based dataset", ex.InnerException.Message);
381Assert.Contains("Encountered non-parsable index '-1' while parsing dataset", ex.InnerException.Message);
400Assert.Contains("Encountered non-parsable index 'a' while parsing dataset", ex.InnerException.Message);
407Assert.Contains("No int parsable keys found during key transform inference", ex.Message);
444Assert.Contains("If the number of features is not specified, a dataset must be provided to infer it.", ex.Message);
446Assert.Contains("To use the text feature names option, a dataset must be provided", ex.Message);
513Assert.Contains("Column Label not found in data", ex.Message);
521Assert.Contains("Column Features not found in data", ex.Message);
529Assert.Contains("Column Group not found in data", ex.Message);
537Assert.Contains("Column Weight not found in data", ex.Message);
Microsoft.ML.Tokenizers.Data.Tests (1)
ServerComparison.FunctionalTests (4)
Shared.Tests (27)
Data.Validation\LengthAttributeTests.cs (12)
42Assert.Contains(nameof(options.Name), results[0].ErrorMessage);
56Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
63Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
98Assert.Contains(nameof(options.Name), results[0].ErrorMessage);
112Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
120Assert.Contains(nameof(options.Address), results[0].ErrorMessage);
171Assert.Contains(nameof(options.Names), results[0].ErrorMessage);
189Assert.Contains(nameof(options.Addresses), results[0].ErrorMessage);
225Assert.Contains(nameof(options.Names), results[0].ErrorMessage);
237Assert.Contains(nameof(options.Addresses), results[0].ErrorMessage);
278Assert.Contains(nameof(options.Names), results[0].ErrorMessage);
296Assert.Contains(nameof(options.Addresses), results[0].ErrorMessage);
Data.Validation\TimeSpanAttributeTests.cs (10)
40Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
47Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
65Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
105Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
112Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
126Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
133Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
168Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
175Assert.Contains(nameof(options.Time), results[0].ErrorMessage);
193Assert.Contains(nameof(options.Time2), results[0].ErrorMessage);
System.Drawing.Common.Tests (3)
System.ServiceModel.Primitives.Tests (2)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (22)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (7)
Templates.Tests (9)
VBCSCompiler.UnitTests (2)