828 references to Contains
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
292Assert.Contains(logCategory, loggerFactory.Categories);
Aspire.Dashboard.Tests (4)
GlobalizationHelpersTests.cs (4)
24Assert.Contains(localizedCulture.Name, supportedCultures); 28Assert.Contains("en-GB", supportedCultures); 29Assert.Contains("fr-CA", supportedCultures); 30Assert.Contains("zh-CN", supportedCultures);
Aspire.Hosting.Azure.Tests (1)
AzureContainerAppsTests.cs (1)
764Assert.Contains(c, module.GetProvisionableResources());
IIS.Common.TestLib (1)
TestConnections.cs (1)
202Assert.Contains(s, headers);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
139Assert.Contains(expectedEvent, frebEvent);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
139Assert.Contains(expectedEvent, frebEvent);
InMemory.FunctionalTests (21)
EventSourceTests.cs (20)
85Assert.All(new[] { "connectionId", "remoteEndPoint", "localEndPoint" }, p => Assert.Contains(p, connectionStart.PayloadNames)); 93Assert.All(new[] { "connectionId", "requestId" }, p => Assert.Contains(p, firstRequestStart.PayloadNames)); 102Assert.All(new[] { "connectionId", "requestId" }, p => Assert.Contains(p, firstRequestStop.PayloadNames)); 111Assert.All(new[] { "connectionId", "requestId" }, p => Assert.Contains(p, secondRequestStart.PayloadNames)); 120Assert.All(new[] { "connectionId", "requestId" }, p => Assert.Contains(p, secondRequestStop.PayloadNames)); 129Assert.All(new[] { "connectionId" }, p => Assert.Contains(p, connectionStop.PayloadNames)); 210Assert.All(new[] { "connectionId", "remoteEndPoint", "localEndPoint" }, p => Assert.Contains(p, connectionStart.PayloadNames)); 218Assert.All(new[] { "connectionId", "sslProtocols" }, p => Assert.Contains(p, tlsHandshakeStart.PayloadNames)); 226Assert.All(new[] { "connectionId", "sslProtocols", "applicationProtocol", "hostName" }, p => Assert.Contains(p, tlsHandshakeStop.PayloadNames)); 237Assert.All(new[] { "connectionId", "requestId" }, p => Assert.Contains(p, requestStart.PayloadNames)); 246Assert.All(new[] { "connectionId", "requestId" }, p => Assert.Contains(p, requestStop.PayloadNames)); 256Assert.All(new[] { "connectionId" }, p => Assert.Contains(p, connectionStop.PayloadNames)); 314Assert.All(new[] { "connectionId", "remoteEndPoint", "localEndPoint" }, p => Assert.Contains(p, connectionStart.PayloadNames)); 322Assert.All(new[] { "connectionId", "sslProtocols" }, p => Assert.Contains(p, tlsHandshakeStart.PayloadNames)); 330Assert.All(new[] { "connectionId" }, p => Assert.Contains(p, tlsHandshakeFailed.PayloadNames)); 338Assert.All(new[] { "connectionId", "sslProtocols", "applicationProtocol", "hostName" }, p => Assert.Contains(p, tlsHandshakeStop.PayloadNames)); 346Assert.All(new[] { "connectionId" }, p => Assert.Contains(p, connectionStop.PayloadNames)); 395Assert.All(new[] { "connectionId", "remoteEndPoint", "localEndPoint" }, p => Assert.Contains(p, connectionStart.PayloadNames)); 403Assert.All(new[] { "connectionId" }, p => Assert.Contains(p, connectionRejected.PayloadNames)); 411Assert.All(new[] { "connectionId" }, p => Assert.Contains(p, connectionStop.PayloadNames));
HttpsConnectionMiddlewareTests.cs (1)
838Assert.Contains(clientChain[0], chain.ChainPolicy.ExtraStore);
Microsoft.Analyzers.Local.Tests (1)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (1)
76Assert.Contains(actual.Id, ids);
Microsoft.AspNetCore.Authentication.Test (2)
OpenIdConnect\OpenIdConnectTests.cs (2)
537Assert.Contains("given_name", options.Scope); 538Assert.Contains("birthdate", options.Scope);
Microsoft.AspNetCore.Authorization.Test (4)
AuthorizationPolicyFacts.cs (4)
38Assert.Contains("dupe", combined.AuthenticationSchemes); 39Assert.Contains("roles", combined.AuthenticationSchemes); 88Assert.Contains("dupe", combined.AuthenticationSchemes); 89Assert.Contains("default", combined.AuthenticationSchemes);
Microsoft.AspNetCore.Components.Server.Tests (4)
ComponentEndpointRouteBuilderExtensionsTest.cs (4)
89Assert.Contains("/_blazor/negotiate", buildersAffected); 90Assert.Contains("/_blazor", buildersAffected); 91Assert.Contains("Blazor disconnect", buildersAffected); 92Assert.Contains("Blazor initializers", buildersAffected);
Microsoft.AspNetCore.Components.Tests (9)
RendererTest.cs (9)
2302Assert.Contains(exception1, aex.InnerExceptions); 2303Assert.Contains(exception2, aex.InnerExceptions); 3792Assert.Contains(exception1, renderer.HandledExceptions); 3793Assert.Contains(exception2, renderer.HandledExceptions); 3846Assert.Contains(exception1, renderer.HandledExceptions); 3847Assert.Contains(exception2, renderer.HandledExceptions); 4258Assert.Contains(exception1, aex.InnerExceptions); 4259Assert.Contains(exception2, aex.InnerExceptions); 4771Assert.Contains(errorThrowingComponentId, renderer.Batches.Last().DisposedComponentIDs);
Microsoft.AspNetCore.Components.Web.Tests (3)
Forms\InputDateTest.cs (1)
31Assert.Contains("The Date property field must be a date.", validationMessages);
Forms\InputNumberTest.cs (1)
46Assert.Contains("The Some number field must be a number.", validationMessages);
Forms\InputSelectTest.cs (1)
189Assert.Contains("The Some number field is not valid.", validationMessages);
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (7)
ContentEncodingNegotiatorTests.cs (7)
32Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 75Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 98Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 121Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 144Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 167Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 210Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray());
Microsoft.AspNetCore.CookiePolicy.Test (5)
CookieConsentTests.cs (1)
274Assert.Contains("extension", consentCookie.Extensions);
CookiePolicyTests.cs (4)
405Assert.Contains("extension", cookie.Extensions); 458Assert.Contains("ext", cookie.Extensions); 465Assert.Contains("ext", cookie.Extensions); 472Assert.Contains("ext", cookie.Extensions);
Microsoft.AspNetCore.HeaderPropagation.Tests (6)
HeaderPropagationMiddlewareTest.cs (6)
46Assert.Contains("in", CapturedHeaders.Keys); 89Assert.Contains("in", CapturedHeaders.Keys); 91Assert.Contains("another", CapturedHeaders.Keys); 134Assert.Contains("in", CapturedHeaders.Keys); 152Assert.Contains("in", CapturedHeaders.Keys); 195Assert.Contains("in", CapturedHeaders.Keys);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
CookieBuilderTests.cs (4)
63Assert.Contains("simple", options.Extensions); 64Assert.Contains("key=value", options.Extensions); 70Assert.Contains("simple", cookie.Extensions); 71Assert.Contains("key=value", cookie.Extensions);
Microsoft.AspNetCore.Http.Tests (1)
CookieOptionsTests.cs (1)
60Assert.Contains(value, copy.Extensions);
Microsoft.AspNetCore.Identity.Specification.Tests (1)
IdentityResultAssert.cs (1)
68Assert.Contains(expectedLog, testlogger.LogMessages);
Microsoft.AspNetCore.Identity.Test (5)
SignInManagerTest.cs (5)
56Assert.Contains($"User is currently locked out.", logger.LogMessages); 86Assert.Contains($"User is currently locked out.", logger.LogMessages); 851Assert.Contains($"User failed to provide the correct password.", logger.LogMessages); 964Assert.Contains(message, logger.LogMessages); 1018Assert.Contains(message, logger.LogMessages);
Microsoft.AspNetCore.Mvc.Core.Test (27)
ApplicationModels\DefaultApplicationModelProviderTest.cs (4)
447Assert.Contains(route.Attribute, model.Attributes); 450Assert.Contains(route.Attribute, model.Attributes); 469Assert.Contains(route.Attribute, model.Attributes); 472Assert.Contains(route.Attribute, model.Attributes);
Controllers\ControllerBinderDelegateProviderTest.cs (1)
898Assert.Contains("test-parameter", arguments.Keys);
MediaTypeCollectionTest.cs (1)
21Assert.Contains("application/json; charset=utf-16", collection);
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
365Assert.Contains(bindingContext.Result.Model, bindingContext.ValidationState.Keys);
ModelBinding\Validation\ClientValidatorCacheTest.cs (10)
25Assert.Contains(attribute1, metadata.ValidatorMetadata); // Copied by provider 26Assert.Contains(attribute2, metadata.ValidatorMetadata); // Copied by provider 34Assert.Contains(validators1[0], validators2); // Cached 35Assert.Contains(validators1[1], validators2); // Cached 52Assert.Contains(validator1.Attribute, metadata.ValidatorMetadata); // Copied by provider 53Assert.Contains(validator2.Attribute, metadata.ValidatorMetadata); // Copied by provider 82Assert.Contains(validator1.Attribute, parameter.ValidatorMetadata); // Copied by provider 83Assert.Contains(validator2.Attribute, parameter.ValidatorMetadata); // Copied by provider 102Assert.Contains(validator1.Attribute, property.ValidatorMetadata); // Copied by provider 103Assert.Contains(validator2.Attribute, property.ValidatorMetadata); // Copied by provider
ModelBinding\Validation\DefaultObjectValidatorTests.cs (4)
317Assert.Contains(ValidationAttributeUtil.GetStringLengthErrorMessage(null, 5, "Street"), errorMessages); 318Assert.Contains(ValidationAttributeUtil.GetRegExErrorMessage("hehehe", "Street"), errorMessages); 349Assert.Contains(ValidationAttributeUtil.GetStringLengthErrorMessage(null, 5, "Street"), errorMessages); 350Assert.Contains(ValidationAttributeUtil.GetRegExErrorMessage("hehehe", "Street"), errorMessages);
ModelBinding\Validation\ValidatorCacheTest.cs (6)
25Assert.Contains(attribute1, metadata.ValidatorMetadata); // Copied by provider 26Assert.Contains(attribute2, metadata.ValidatorMetadata); // Copied by provider 34Assert.Contains(validators1[0], validators2); // Cached 35Assert.Contains(validators1[1], validators2); // Cached 52Assert.Contains(validator1.Attribute, metadata.ValidatorMetadata); // Copied by provider 53Assert.Contains(validator2.Attribute, metadata.ValidatorMetadata); // Copied by provider
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerInputFormatterTest.cs (2)
116Assert.Contains("application/xml", formatter.SupportedMediaTypes 118Assert.Contains("text/xml", formatter.SupportedMediaTypes
XmlSerializerInputFormatterTest.cs (2)
313Assert.Contains("application/xml", formatter.SupportedMediaTypes 315Assert.Contains("text/xml", formatter.SupportedMediaTypes
Microsoft.AspNetCore.Mvc.FunctionalTests (39)
RoutingEndpointRoutingTest.cs (2)
24Assert.Contains("/PageRoute/Attribute/pagevalue", result.ExpectedUrls); 28Assert.Contains(
RoutingTestsBase.cs (31)
269Assert.Contains("/Home/Index", result.ExpectedUrls); 293Assert.Contains("/", result.ExpectedUrls); 327Assert.Contains("/Travel/Flight/Index", result.ExpectedUrls); 379Assert.Contains("/Store/Shop/Products", result.ExpectedUrls); 383Assert.Contains( 387Assert.Contains( 412Assert.Contains(url, result.ExpectedUrls); 416Assert.Contains( 420Assert.Contains( 426Assert.Contains( 640Assert.Contains("/Home/About", result.ExpectedUrls); 657Assert.Contains("/Blog/Edit/5", result.ExpectedUrls); 661Assert.Contains( 665Assert.Contains( 669Assert.Contains( 687Assert.Contains("/api/Employee", result.ExpectedUrls); 714Assert.Contains("/Store/Shop/Orders", result.ExpectedUrls); 739Assert.Contains("/api/Employee/5/Salary", result.ExpectedUrls); 759Assert.Contains("/Store/Shop/Orders", result.ExpectedUrls); 782Assert.Contains("/api/Employee", result.ExpectedUrls); 804Assert.Contains("/api/Employee/Manager", result.ExpectedUrls); 849Assert.Contains("/api/Employee/5", result.ExpectedUrls); 872Assert.Contains("/api/Employee/5/Administrator", result.ExpectedUrls); 876Assert.Contains( 893Assert.Contains("/Manager/5", result.ExpectedUrls); 897Assert.Contains( 914Assert.Contains("/Team/5", result.ExpectedUrls); 918Assert.Contains( 935Assert.Contains("/Teams", result.ExpectedUrls); 1497Assert.Contains(path, result.ExpectedUrls); 1549Assert.Contains(path, result.ExpectedUrls);
RoutingWithoutRazorPagesTestsBase.cs (2)
48Assert.Contains("/PageRoute/Attribute/pagevalue", result.ExpectedUrls); 52Assert.Contains(
VersioningTestsBase.cs (4)
56Assert.Contains("api/addresses", result.ExpectedUrls); 80Assert.Contains("/api/addresses/all?version=" + version, result.ExpectedUrls); 163Assert.Contains( 239Assert.Contains(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
AssemblyPartExtensionTest.cs (2)
22Assert.Contains(assembly.Location, references); 23Assert.Contains(
Microsoft.AspNetCore.Mvc.Razor.Test (1)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (1)
148Assert.Contains(typeof(RouteAttribute), item.Item.Metadata.Select(m => m.GetType())); // Verify we pick up new attributes
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
OptionTagHelperTest.cs (1)
441Assert.Contains(attribute, expectedTagHelperOutput.Attributes);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
RemoteAttributeTest.cs (4)
94Assert.Contains("controller", attribute.RouteData.Keys); 112Assert.Contains("action", attribute.RouteData.Keys); 131Assert.Contains("action", attribute.RouteData.Keys); 132Assert.Contains("controller", attribute.RouteData.Keys);
Microsoft.AspNetCore.OpenApi.Tests (24)
Services\CreateSchemaReferenceIdTests.cs (1)
53Assert.Contains(schema.Discriminator.PropertyName, triangleSchema.Properties.Keys);
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (9)
414Assert.Contains("application/x-www-form-urlencoded", content.Keys); 415Assert.Contains("multipart/form-data", content.Keys); 471Assert.Contains("application/x-www-form-urlencoded", content.Keys); 518Assert.Contains("application/x-www-form-urlencoded", content.Keys); 573Assert.Contains("application/x-www-form-urlencoded", content.Keys); 574Assert.Contains("multipart/form-data", content.Keys); 639Assert.Contains("application/x-www-form-urlencoded", content.Keys); 707Assert.Contains("application/x-www-form-urlencoded", content.Keys); 747Assert.Contains("application/x-www-form-urlencoded", content.Keys);
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Servers.cs (3)
34Assert.Contains("http://localhost:5000", servers.Select(s => s.Url)); 58Assert.Contains("http://localhost:5000", servers.Select(s => s.Url)); 59Assert.Contains("http://localhost:5002", servers.Select(s => s.Url));
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (11)
40Assert.Contains(schema.Discriminator.PropertyName, triangleSchema.Properties.Keys); 79Assert.Contains(schema.Discriminator.PropertyName, citySchema.Properties.Keys); 83Assert.Contains(schema.Discriminator.PropertyName, timeSeriesSchema.Properties.Keys); 87Assert.Contains(schema.Discriminator.PropertyName, newsSchema.Properties.Keys); 122Assert.Contains(schema.Discriminator.PropertyName, citySchema.Properties.Keys); 126Assert.Contains(schema.Discriminator.PropertyName, timeSeriesSchema.Properties.Keys); 158Assert.Contains("$type", paintSchema.Properties.Keys); 162Assert.Contains("$type", fabricSchema.Properties.Keys); 210Assert.Contains(schema.Discriminator.PropertyName, dogSchema.Properties.Keys); 214Assert.Contains(schema.Discriminator.PropertyName, catSchema.Properties.Keys); 218Assert.Contains(schema.Discriminator.PropertyName, petSchema.Properties.Keys);
Microsoft.AspNetCore.OutputCaching.Tests (19)
OutputCacheAttributeTests.cs (8)
85Assert.Contains("HeaderA", (IEnumerable<string>)context.CacheVaryByRules.HeaderNames); 86Assert.Contains("HeaderC", (IEnumerable<string>)context.CacheVaryByRules.HeaderNames); 100Assert.Contains("QueryA", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 101Assert.Contains("QueryC", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 119Assert.Contains("RouteA", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames); 120Assert.Contains("RouteC", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames); 132Assert.Contains("Tag1", (IEnumerable<string>)context.Tags); 133Assert.Contains("Tag2", (IEnumerable<string>)context.Tags);
OutputCachePoliciesTests.cs (1)
295Assert.Contains(new KeyValuePair<string, string>(key, value), context.CacheVaryByRules.VaryByValues);
OutputCachePolicyBuilderTests.cs (10)
115Assert.Contains("HeaderA", (IEnumerable<string>)context.CacheVaryByRules.HeaderNames); 116Assert.Contains("HeaderC", (IEnumerable<string>)context.CacheVaryByRules.HeaderNames); 131Assert.Contains("QueryA", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 132Assert.Contains("QueryC", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 151Assert.Contains("RouteA", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames); 152Assert.Contains("RouteC", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames); 171Assert.Contains("RouteA", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames); 172Assert.Contains("RouteC", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames); 191Assert.Contains("RouteA", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames); 192Assert.Contains("RouteC", (IEnumerable<string>)context.CacheVaryByRules.RouteValueNames);
Microsoft.AspNetCore.Routing.Tests (10)
Builder\FallbackEndpointRouteBuilderExtensionsTest.cs (2)
28Assert.Contains(FallbackMetadata.Instance, endpoint.Metadata); 44Assert.Contains(FallbackMetadata.Instance, endpoint.Metadata);
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
768Assert.Contains(FallbackMetadata.Instance, routeEndpointBuilder.Metadata);
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (2)
192Assert.Contains("test-metadata", metadata); 193Assert.Contains("found-previous-metadata", metadata);
DefaultEndpointDataSourceTests.cs (4)
40Assert.Contains(endpoint1, dataSource.Endpoints); 41Assert.Contains(endpoint2, dataSource.Endpoints); 84Assert.Contains(endpoint1, dataSource.Endpoints); 85Assert.Contains(endpoint2, dataSource.Endpoints);
RouteValuesAddressSchemeTest.cs (1)
257Assert.Contains(endpoint1, foundEndpoints);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (7)
RequestHeaderTests.cs (7)
190Assert.Contains(customHeader, requestHeaders.Keys); 191Assert.Contains(requestHeaders[customHeader].First(), requestHeaders.Keys); 192Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 217Assert.Contains("X-UnknownHeader-0", requestHeaders.Keys); 218Assert.Contains("My-UnknownHeader-1", requestHeaders.Keys); 219Assert.Contains("X-UnknownHeader-2", requestHeaders.Keys); 220Assert.Contains(HeaderNames.Host, requestHeaders.Keys);
Microsoft.AspNetCore.Server.HttpSys.Tests (22)
RequestHeaderTests.cs (22)
35Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 36Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 56Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 57Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 76Assert.Contains(CustomHeader1, requestHeaders.Keys); 77Assert.Contains(CustomHeader2, requestHeaders.Keys); 97Assert.Contains(CustomHeader1, requestHeaders.Keys); 98Assert.Contains(CustomHeader2, requestHeaders.Keys); 156Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 157Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 158Assert.Contains(CustomHeader1, requestHeaders.Keys); 159Assert.Contains(CustomHeader2, requestHeaders.Keys); 180Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 181Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 182Assert.Contains(CustomHeader1, requestHeaders.Keys); 183Assert.Contains(CustomHeader2, requestHeaders.Keys); 243Assert.Contains(CustomHeader1, requestHeaders.Keys); 244Assert.Contains(CustomHeader2, requestHeaders.Keys); 268Assert.Contains(CustomHeader2, requestHeaders.Keys); 328Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 329Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 353Assert.Contains(HeaderNames.From, requestHeaders.Keys);
Microsoft.AspNetCore.Tests (9)
WebApplicationTests.cs (7)
1366Assert.Contains("*", options.AllowedHosts); 1378Assert.Contains("NewHost", options.AllowedHosts); 1992Assert.Contains("One", displayNames); 1993Assert.Contains("Two", displayNames); 1994Assert.Contains("Three", displayNames); 1995Assert.Contains("Four", displayNames); 1996Assert.Contains("Five", displayNames);
WebHostTests.cs (2)
42Assert.Contains("*", options.AllowedHosts); 54Assert.Contains("NewHost", options.AllowedHosts);
Microsoft.Build.Engine.OM.UnitTests (21)
Construction\SolutionFile_Tests.cs (14)
370Assert.Contains(classLibrary3.ProjectGuid, classLibrary2.Dependencies); 371Assert.Contains(classLibrary1.ProjectGuid, classLibrary2.Dependencies); 445Assert.Contains("Debug|Any CPU", configurationNames); 446Assert.Contains("Debug|Mixed Platforms", configurationNames); 447Assert.Contains("Debug|Win32", configurationNames); 448Assert.Contains("Release|Any CPU", configurationNames); 449Assert.Contains("Release|Mixed Platforms", configurationNames); 450Assert.Contains("Release|Win32", configurationNames); 507Assert.Contains("Debug|Any CPU", configurationNames); 508Assert.Contains("Debug|ARM", configurationNames); 509Assert.Contains("Debug|x86", configurationNames); 510Assert.Contains("Release|Any CPU", configurationNames); 511Assert.Contains("Release|ARM", configurationNames); 512Assert.Contains("Release|x86", configurationNames);
Definition\ProjectCollection_Tests.cs (4)
432Assert.Contains(project1, projects); 433Assert.Contains(project2, projects); 985Assert.Contains(toolset1, toolsets); 986Assert.Contains(toolset2, toolsets);
Instance\ProjectInstance_Tests.cs (3)
443Assert.Contains(CapturedMetadataName, projAInstanceItem.MetadataNames); 485Assert.Contains(CapturedMetadataName, projAInstanceItem.MetadataNames); 520Assert.Contains(CapturedMetadataName, projAInstanceItem.MetadataNames);
Microsoft.Build.Engine.UnitTests (22)
BackEnd\BuildManager_Tests.cs (3)
3531Assert.Contains("One.cache", resultsFiles); 3532Assert.Contains("Two.cache", resultsFiles); 3533Assert.Contains("Three.cache", resultsFiles);
BackEnd\LoggingService_Tests.cs (18)
277Assert.Contains("Microsoft.Build.BackEnd.Logging.CentralForwardingLogger", _initializedService.RegisteredLoggerTypeNames); 278Assert.Contains("Microsoft.Build.UnitTests.Logging.LoggingService_Tests+RegularILogger", _initializedService.RegisteredLoggerTypeNames); 279Assert.Contains("Microsoft.Build.Logging.ConsoleLogger", _initializedService.RegisteredLoggerTypeNames); 301Assert.Contains("Microsoft.Build.BackEnd.Logging.CentralForwardingLogger", _initializedService.RegisteredLoggerTypeNames); 302Assert.Contains("Microsoft.Build.UnitTests.Logging.LoggingService_Tests+RegularILogger", _initializedService.RegisteredLoggerTypeNames); 303Assert.Contains("Microsoft.Build.Logging.ConsoleLogger", _initializedService.RegisteredLoggerTypeNames); 367Assert.Contains("Microsoft.Build.Logging.ConfigurableForwardingLogger", _initializedService.RegisteredLoggerTypeNames); 368Assert.Contains("Microsoft.Build.UnitTests.Logging.LoggingService_Tests+RegularILogger", _initializedService.RegisteredLoggerTypeNames); 369Assert.Contains("Microsoft.Build.Logging.DistributedFileLogger", _initializedService.RegisteredLoggerTypeNames); 370Assert.Contains("Microsoft.Build.BackEnd.Logging.NullCentralLogger", _initializedService.RegisteredLoggerTypeNames); 446Assert.Contains("Microsoft.Build.Logging.ConfigurableForwardingLogger", _initializedService.RegisteredLoggerTypeNames); 447Assert.Contains("Microsoft.Build.UnitTests.Logging.LoggingService_Tests+RegularILogger", _initializedService.RegisteredLoggerTypeNames); 484Assert.Contains("Microsoft.Build.BackEnd.Logging.NullCentralLogger", _initializedService.RegisteredLoggerTypeNames); 485Assert.Contains("Microsoft.Build.UnitTests.Logging.LoggingService_Tests+RegularILogger", _initializedService.RegisteredLoggerTypeNames); 570Assert.Contains("Microsoft.Build.Logging.ConfigurableForwardingLogger", _initializedService.RegisteredLoggerTypeNames); 571Assert.Contains("Microsoft.Build.BackEnd.Logging.CentralForwardingLogger", _initializedService.RegisteredLoggerTypeNames); 624Assert.Contains("Microsoft.Build.Logging.ConfigurableForwardingLogger", _initializedService.RegisteredLoggerTypeNames); 625Assert.Contains("Microsoft.Build.UnitTests.Logging.LoggingService_Tests+RegularILogger", _initializedService.RegisteredLoggerTypeNames);
Globbing\CompositeGlob_Tests.cs (1)
137Assert.Contains(expectedGlob, leafGlobs);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
895Assert.Contains("RoslynComponent", caps);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
1907Assert.Contains("GOO", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1912Assert.Contains("GOO", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1913Assert.Contains("BAR", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1914Assert.Contains("ZIP", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1919Assert.Contains("GOO", parsedArgs.ParseOptions.PreprocessorSymbolNames);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (1)
81Assert.Contains(orderedCSharpArgumentProviders[i].Metadata.Name, orderedCSharpArgumentProviders[i - 1].Metadata.BeforeTyped);
Completion\CompletionProviders\CompletionProviderOrderTests.cs (1)
113Assert.Contains(orderedCSharpCompletionProviders[i].Metadata.Name, orderedCSharpCompletionProviders[i - 1].Metadata.BeforeTyped);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (67)
Attributes\AttributeTests_Synthesized.cs (4)
721Assert.Contains("CompilerGeneratedAttribute", attributeNames); 778Assert.Contains("CompilerGeneratedAttribute", attributeNames); 860Assert.Contains("CompilerGeneratedAttribute", attributeNames); 924Assert.Contains("CompilerGeneratedAttribute", attributeNames);
Diagnostics\DiagnosticAnalyzerTests.cs (2)
455Assert.Contains(enabledDiag, effectiveDiags); 466Assert.Contains(disabledDiag, effectiveDiags);
Semantics\OutVarTests.cs (3)
32744Assert.Contains(symbol, symbols); 32771Assert.Contains(symbol, referenceInfo.CandidateSymbols); 32773Assert.Contains(symbol, symbols);
Semantics\ParamsCollectionTests.cs (2)
12768Assert.Contains(comp1Ref, comp2.GetUsedAssemblyReferences()); 12776Assert.Contains(comp1Ref, comp4.GetUsedAssemblyReferences());
Semantics\PatternMatchingTestBase.cs (4)
256Assert.Contains(symbol, symbols); 263Assert.Contains(designation.Identifier.ValueText, names); 307Assert.Contains(symbol, referenceInfo.CandidateSymbols); 309Assert.Contains(symbol, symbols);
Semantics\PrimaryConstructorTests.cs (29)
1014Assert.Contains("X", model.LookupNames(x.SpanStart)); 1081Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 1082Assert.Contains("X", model.LookupNames(x.SpanStart)); 1308Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 1309Assert.Contains("X", model.LookupNames(x.SpanStart)); 1321Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "y")); 1322Assert.Contains("y", model.LookupNames(x.SpanStart)); 1331Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "Test")); 1332Assert.Contains("Test", model.LookupNames(x.SpanStart)); 1537Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 1538Assert.Contains("X", model.LookupNames(x.SpanStart)); 1626Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 1627Assert.Contains("X", model.LookupNames(x.SpanStart)); 1904Assert.Contains("X", model.LookupNames(x.SpanStart)); 1975Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 1976Assert.Contains("X", model.LookupNames(x.SpanStart)); 2649Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2650Assert.Contains("X", model.LookupNames(x.SpanStart)); 2687Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2688Assert.Contains("X", model.LookupNames(x.SpanStart)); 2724Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2725Assert.Contains("X", model.LookupNames(x.SpanStart)); 2760Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2761Assert.Contains("X", model.LookupNames(x.SpanStart)); 7834Assert.Contains("p1", model.LookupNames(p1.SpanStart)); 8764Assert.Contains("p1", model.LookupNames(p1.SpanStart)); 8765Assert.Contains(symbol, model.LookupSymbols(p1.SpanStart, name: "p1")); 9170Assert.Contains("p1", model.LookupNames(p1.SpanStart)); 9171Assert.Contains(symbol, model.LookupSymbols(p1.SpanStart, name: "p1"));
Semantics\RecordTests.cs (23)
21198Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 21199Assert.Contains("X", model.LookupNames(x.SpanStart)); 21427Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 21428Assert.Contains("X", model.LookupNames(x.SpanStart)); 21440Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "y")); 21441Assert.Contains("y", model.LookupNames(x.SpanStart)); 21450Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "Test")); 21451Assert.Contains("Test", model.LookupNames(x.SpanStart)); 21656Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 21657Assert.Contains("X", model.LookupNames(x.SpanStart)); 21745Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 21746Assert.Contains("X", model.LookupNames(x.SpanStart)); 22017Assert.Contains("X", model.LookupNames(x.SpanStart)); 22132Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 22133Assert.Contains("X", model.LookupNames(x.SpanStart)); 24696Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 24697Assert.Contains("X", model.LookupNames(x.SpanStart)); 24731Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 24732Assert.Contains("X", model.LookupNames(x.SpanStart)); 24765Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 24766Assert.Contains("X", model.LookupNames(x.SpanStart)); 24800Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 24801Assert.Contains("X", model.LookupNames(x.SpanStart));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (159)
Semantics\DelegateTypeTests.cs (1)
17407Assert.Contains("MyEmbeddedType", module.TypeNames);
Semantics\ExpressionBodiedMemberTests.cs (2)
540Assert.Contains("P1", model.LookupNames(tree.GetRoot().DescendantNodes().OfType<ConstructorDeclarationSyntax>().Single().Body.Position)); 580Assert.Contains("P1", model.LookupNames(tree.GetRoot().DescendantNodes().OfType<DestructorDeclarationSyntax>().Single().Body.Position));
Semantics\LambdaTests.cs (10)
8231Assert.Contains("C", names); 8232Assert.Contains("x", names); 8233Assert.Contains("y", names); 8234Assert.Contains("N1", names); 8235Assert.Contains("N2", names); 8236Assert.Contains("T1", names); 8237Assert.Contains("T2", names); 8238Assert.Contains("M1", names); 8239Assert.Contains("M2", names); 8240Assert.Contains("lam", names);
Semantics\LookupTests.cs (46)
222Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 223Assert.Contains(expected_in_lookupSymbols[0], actual_lookupSymbols_as_string); 224Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 225Assert.Contains(expected_in_lookupSymbols[1], actual_lookupSymbols_as_string); 325Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 326Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 328Assert.Contains(expected_in_lookupSymbols[0], actual_lookupSymbols_as_string); 329Assert.Contains(expected_in_lookupSymbols[1], actual_lookupSymbols_as_string); 379Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 380Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 381Assert.Contains(expected_in_lookupNames[2], actual_lookupNames); 457Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 458Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 459Assert.Contains(expected_in_lookupNames[2], actual_lookupNames); 460Assert.Contains(expected_in_lookupNames[3], actual_lookupNames); 461Assert.Contains(expected_in_lookupNames[4], actual_lookupNames); 462Assert.Contains(expected_in_lookupNames[5], actual_lookupNames); 527Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 596Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 735Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 736Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 737Assert.Contains(expected_in_lookupNames[2], actual_lookupNames); 786Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 787Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 835Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 836Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 837Assert.Contains(expected_in_lookupNames[2], actual_lookupNames); 952Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 953Assert.Contains(expected_in_lookupNames[1], actual_lookupNames); 995Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 1032Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 1061Assert.Contains("w", lookupNames); 1062Assert.Contains("y", lookupNames); 1091Assert.Contains("w", lookupNames); 1092Assert.Contains("y", lookupNames); 1120Assert.Contains("w", lookupNames); 1121Assert.Contains("y", lookupNames); 1158Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 1196Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 1231Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 1232Assert.Contains(expected_in_lookupSymbols[0], actual_lookupSymbols_as_string); 1355Assert.Contains(expected_in_lookupNames[0], actual_lookupNames); 1356Assert.Contains(expected_in_lookupSymbols[0], actual_lookupSymbols_as_string); 1539Assert.Contains(aliasY, actual_lookupSymbols); 2138Assert.Contains("C", names); 2139Assert.Contains("Attr1", names);
Semantics\NativeIntegerTests.cs (3)
490Assert.Contains(member, allMembers); 516Assert.Contains(member.Name, memberNames); 531Assert.Contains(member, allMembers);
Semantics\RecordStructTests.cs (8)
2602Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2603Assert.Contains("X", model.LookupNames(x.SpanStart)); 2637Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2638Assert.Contains("X", model.LookupNames(x.SpanStart)); 2671Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2672Assert.Contains("X", model.LookupNames(x.SpanStart)); 2706Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X")); 2707Assert.Contains("X", model.LookupNames(x.SpanStart));
Semantics\TopLevelStatementsTests.cs (78)
197Assert.Contains(refSymbol.Name, model1.LookupNames(localRef.SpanStart)); 198Assert.Contains(refSymbol, model1.LookupSymbols(localRef.SpanStart)); 240Assert.Contains(declSymbol.Name, model1.LookupNames(localDecl.SpanStart)); 241Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart)); 363Assert.Contains(declSymbol.Name, model2.LookupNames(localDecl.SpanStart)); 364Assert.Contains(declSymbol, model2.LookupSymbols(localDecl.SpanStart)); 484Assert.Contains(declSymbol.Name, model1.LookupNames(localDecl.SpanStart)); 485Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart)); 493Assert.Contains(declSymbol.Name, model1.LookupNames(localFuncRef.SpanStart)); 494Assert.Contains(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart)); 536Assert.Contains(declSymbol.Name, model1.LookupNames(localDecl.SpanStart)); 537Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart)); 547Assert.Contains(declSymbol.Name, model1.LookupNames(localRef.SpanStart)); 548Assert.Contains(declSymbol, model1.LookupSymbols(localRef.SpanStart)); 576Assert.Contains(declSymbol.Name, model1.LookupNames(localDecl.SpanStart)); 577Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart)); 585Assert.Contains(declSymbol.Name, model1.LookupNames(localFuncRef.SpanStart)); 586Assert.Contains(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart)); 589Assert.Contains(declSymbol, model1.AnalyzeDataFlow(localDecl.Ancestors().OfType<StatementSyntax>().First()).DataFlowsOut); 594Assert.Contains(refSymbol.Name, model1.LookupNames(localRef.SpanStart)); 595Assert.Contains(refSymbol, model1.LookupSymbols(localRef.SpanStart)); 1694Assert.Contains("Test", names); 1696Assert.Contains(declSymbol, symbols); 1700Assert.Contains(testType, symbols); 1722Assert.Contains("Test", names); 1728Assert.Contains(testType, symbols); 1762Assert.Contains("Test", names); 1766Assert.Contains(declSymbol, symbols); 1770Assert.Contains(testType, symbols); 1867Assert.Contains("Test", names); 1869Assert.Contains(declSymbol, symbols); 1873Assert.Contains(testType, symbols); 1890Assert.Contains("Test", names); 1896Assert.Contains(testType, symbols); 1930Assert.Contains("Test", names); 1934Assert.Contains(declSymbol, symbols); 1938Assert.Contains(testType, symbols); 2090Assert.Contains("Test", names); 2092Assert.Contains(declSymbol, symbols); 2096Assert.Contains(testType, symbols); 2107Assert.Contains("Test", names); 2111Assert.Contains(testType, symbols); 2143Assert.Contains("Test", names); 2147Assert.Contains(declSymbol, symbols); 2151Assert.Contains(testType, symbols); 2254Assert.Contains("Test", names); 2256Assert.Contains(declSymbol, symbols); 2260Assert.Contains(testType, symbols); 2273Assert.Contains("Test", names); 2277Assert.Contains(testType, symbols); 2309Assert.Contains("Test", names); 2313Assert.Contains(declSymbol, symbols); 2317Assert.Contains(testType, symbols); 2433Assert.Contains("Test", names); 2434Assert.Contains(testType, symbols); 2439Assert.Contains(testType, symbols); 2453Assert.Contains("Test", names); 2457Assert.Contains(testType, symbols); 2468Assert.Contains("Test", names); 2472Assert.Contains(testType, symbols); 2506Assert.Contains("Test", names); 2509Assert.Contains(testType, symbols); 2514Assert.Contains(testType, symbols); 3948Assert.Contains("args", names); 3951Assert.Contains(testType, symbols); 3962Assert.Contains("args", names); 3966Assert.Contains(parameter, symbols); 3970Assert.Contains(testType, symbols); 4002Assert.Contains("args", names); 4005Assert.Contains(testType, symbols); 4010Assert.Contains(testType, symbols); 4097Assert.Contains("args", names); 4100Assert.Contains(testType, symbols); 4132Assert.Contains("args", names); 4135Assert.Contains(testType, symbols); 4140Assert.Contains(testType, symbols); 6041Assert.Contains(declSymbol.Name, model1.LookupNames(localRef.SpanStart)); 6042Assert.Contains(declSymbol, model1.LookupSymbols(localRef.SpanStart));
SourceGeneration\GeneratorDriverTests.cs (11)
3164Assert.Contains(WellKnownGeneratorInputs.Compilation, runResult.TrackedSteps.Keys); 3165Assert.Contains(WellKnownGeneratorInputs.AnalyzerConfigOptions, runResult.TrackedSteps.Keys); 3166Assert.Contains(WellKnownGeneratorInputs.ParseOptions, runResult.TrackedSteps.Keys); 3167Assert.Contains(WellKnownGeneratorInputs.AdditionalTexts, runResult.TrackedSteps.Keys); 3168Assert.Contains(WellKnownGeneratorInputs.MetadataReferences, runResult.TrackedSteps.Keys); 3171Assert.Contains("Syntax", runResult.TrackedSteps.Keys); 3174Assert.Contains(WellKnownGeneratorOutputs.SourceOutput, runResult.TrackedSteps.Keys); 3175Assert.Contains(WellKnownGeneratorOutputs.ImplementationSourceOutput, runResult.TrackedSteps.Keys); 3177Assert.Contains(WellKnownGeneratorOutputs.SourceOutput, runResult.TrackedOutputSteps.Keys); 3178Assert.Contains(WellKnownGeneratorOutputs.ImplementationSourceOutput, runResult.TrackedOutputSteps.Keys); 3210result => Assert.Contains(WellKnownGeneratorInputs.AdditionalTexts, result.TrackedSteps.Keys));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (45)
Compilation\CompilationAPITests.cs (1)
804Assert.Contains(t1, comp.SyntaxTrees);
Compilation\GetSemanticInfoTests.cs (4)
4689Assert.Contains("Goo", model.LookupNames(position, paramType0)); 4690Assert.Contains("Goo", model.LookupNames(position, paramType1)); 4734Assert.Contains("Goo", model.LookupNames(position, paramType0)); 4735Assert.Contains("Goo", model.LookupNames(position, paramType1));
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (28)
1217Assert.Contains("A", namesInC); 1218Assert.Contains("B", namesInC); 1219Assert.Contains("C", namesInC); 1220Assert.Contains("System", namesInC); 1221Assert.Contains("Microsoft", namesInC); 1252Assert.Contains("X", namesInA); 1253Assert.Contains("Y", namesInA); 1254Assert.Contains("ToString", namesInA); 1286Assert.Contains("A", namesInC); 1287Assert.Contains("B", namesInC); 1288Assert.Contains("C", namesInC); 1289Assert.Contains("AM", namesInC); 1290Assert.Contains("BX", namesInC); 1291Assert.Contains("CM", namesInC); 1292Assert.Contains("System", namesInC); 1293Assert.Contains("Microsoft", namesInC); 1337Assert.Contains("M", names); 1338Assert.Contains("ToString", names); 1339Assert.Contains("ReferenceEquals", names); 1340Assert.Contains("GetHashCode", names); 1341Assert.Contains("GetType", names); 1342Assert.Contains("Equals", names); 1343Assert.Contains("MB", names); 1349Assert.Contains("ToString", names); 1350Assert.Contains("ReferenceEquals", names); 1351Assert.Contains("GetHashCode", names); 1352Assert.Contains("GetType", names); 1353Assert.Contains("Equals", names);
DocumentationComments\CrefTests.cs (1)
2010Assert.Contains(actualWinner, actualCandidates);
Symbols\ExtensionMethodTests.cs (4)
3785Assert.Contains("GetEnumerableDisposable2", symbols); 3786Assert.Contains("GetEnumerableDisposable1", symbols); 3873Assert.Contains(setMember, model.LookupSymbols(instance.Position, baseClass, includeReducedExtensionMethods: true)); 3965Assert.Contains(setMember, model.LookupSymbols(instance.Position, baseClass, includeReducedExtensionMethods: true));
Symbols\Source\UsingAliasTests.cs (2)
449Assert.Contains("O", names); 468Assert.Contains("O", names);
Symbols\StaticAbstractMembersInInterfacesTests.cs (5)
8476Assert.Contains("M01", model.LookupNames(node.SpanStart, m02.TypeParameters[0].GetPublicSymbol())); 13202Assert.Contains("P01", model.LookupNames(node.SpanStart, m02.TypeParameters[0].GetPublicSymbol())); 13288Assert.Contains("P01", model.LookupNames(node.SpanStart, m02.TypeParameters[0].GetPublicSymbol())); 13410Assert.Contains("P01", model.LookupNames(node.SpanStart, m02.TypeParameters[0].GetPublicSymbol())); 14120Assert.Contains("E01", model.LookupNames(node.SpanStart, m02.TypeParameters[0].GetPublicSymbol()));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1403Assert.Contains(reference, resolvedReferences);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
UnusedReferences\UnusedReferencesRemoverTests.cs (4)
67Assert.Contains(unusedReference, unusedReferences); 102Assert.Contains(transitivelyUsedReference, unusedReferences); 147Assert.Contains(changeUpdate, appliedUpdates); 159Assert.Contains(changeUpdate, appliedUpdates);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Completion\CompletionFeaturesTests.cs (1)
898Assert.Contains(item, ReturnedItems);
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\TestOperationVisitor.cs (3)
407Assert.Contains(operation.Kind, new[] { OperationKind.Return, OperationKind.YieldReturn, OperationKind.YieldBreak }); 579Assert.Contains(operation.ArgumentKind, new[] { ArgumentKind.DefaultValue, ArgumentKind.Explicit, ArgumentKind.ParamArray, ArgumentKind.ParamCollection }); 1199Assert.Contains(operation.Kind, new[] { OperationKind.Increment, OperationKind.Decrement });
Microsoft.CodeAnalysis.UnitTests (43)
Analyzers\AnalyzerFileReferenceTests.cs (10)
128Assert.Contains("TestAnalyzer", analyzerNames); 129Assert.Contains("TestAnalyzerCS", analyzerNames); 130Assert.Contains("TestAnalyzerCSVB", analyzerNames); 131Assert.Contains("NestedAnalyzer", analyzerNames); 136Assert.Contains("TestAnalyzerVB", analyzerNames); 137Assert.Contains("TestAnalyzerCSVB", analyzerNames); 138Assert.Contains("TestAnalyzer", analyzerNames); 139Assert.Contains("NestedAnalyzer", analyzerNames); 157Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AbstractAnalyzer", failedTypes); 158Assert.Contains("Microsoft.CodeAnalysis.UnitTests.OpenGenericAnalyzer`1", failedTypes);
CachingLookupTests.cs (2)
95Assert.Contains(item, l2); 100Assert.Contains(item, l1);
Collections\ImmutablesTestBase.cs (1)
49Assert.Contains(value, actual);
CommonCommandLineParserTests.cs (30)
410Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 412Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 414Assert.Contains("CA1014", ruleSet.SpecificDiagnosticOptions.Keys); 416Assert.Contains("CA1015", ruleSet.SpecificDiagnosticOptions.Keys); 418Assert.Contains("CA1016", ruleSet.SpecificDiagnosticOptions.Keys); 477Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 502Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 504Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 530Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 532Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 558Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 560Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 587Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 589Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 625Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 627Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 663Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 665Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 667Assert.Contains("CA1014", ruleSet.SpecificDiagnosticOptions.Keys); 693Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 729Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 763Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 766Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 790Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 814Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 816Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 886Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 888Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys); 911Assert.Contains("CA1012", ruleSet.SpecificDiagnosticOptions.Keys); 913Assert.Contains("CA1013", ruleSet.SpecificDiagnosticOptions.Keys);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
NetCoreTests.cs (1)
513Assert.Contains("LibraryHelperClass = Library.MyHelperClass", option.GlobalImports.Select(i => i.Name));
VisualStudioMSBuildWorkspaceTests.cs (2)
1659Assert.Contains("TRACE", options.PreprocessorSymbolNames); 1945Assert.Contains("EnableMyAttribute", options.PreprocessorSymbolNames);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
SolutionTests\ProjectDependencyGraphTests.cs (1)
59Assert.Contains<string>(actualResult, expectedResults);
SolutionTests\SolutionTests.cs (1)
4344Assert.Contains(await frozenDocument.GetSyntaxTreeAsync(), (await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees);
UtilityTest\BKTreeTests.cs (4)
60Assert.Contains(value.ToLower(), items); 73Assert.Contains(value.ToLower(), items); 87Assert.Contains(value.ToLower(), items); 101Assert.Contains(value.ToLower(), items);
Microsoft.Data.Analysis.Tests (1)
DataFrameGroupByTests.cs (1)
88Assert.Contains(i * 10 + j, values);
Microsoft.DotNet.PackageTesting.Tests (2)
GetCompatibilePackageTargetFrameworksTests.cs (2)
174Assert.Contains(item, T2); 178Assert.Contains(item, T1);
Microsoft.DotNet.XUnitAssert.Tests (7)
CollectionAssertsTests.cs (7)
283 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IEnumerable<int>)!)); 291 Assert.Contains(null, list); 299 Assert.Contains(42, list); 307 var ex = Record.Exception(() => Assert.Contains(42, list)); 323 Assert.Contains("Hi there", list); 331 Assert.Contains("HI THERE", set); 340 Assert.Contains("HI THERE", set);
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
GetDocumentTests.cs (1)
121Assert.Contains(expectedDocumentPath, documentNames);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (14)
HealthCheckPublisherHostedServiceTest.cs (14)
225entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 226entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 387Assert.Contains("CheckDefault", entries); 388Assert.Contains("CheckDelay1Period18", entries); 389Assert.Contains("CheckDelay1Period9", entries); 390Assert.Contains("CheckDelay1Period9_1", entries); 490entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 491entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 643Assert.Contains("CheckDelay1Period9", entries); 644Assert.Contains("CheckDelay1Period9_1", entries); 659Assert.Contains("CheckDelay1Period9", entries); 660Assert.Contains("CheckDelay1Period9_1", entries); 696entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); }, 697entry => { Assert.Contains(entry.EventId, new[] { DefaultHealthCheckEventIds.HealthCheckBegin, DefaultHealthCheckEventIds.HealthCheckEnd }); },
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
DependencyInjectionExtensionsTests.cs (1)
199Assert.Contains(pooled, instances);
Microsoft.Gen.ContextualOptions.Generated.Tests (2)
ContextualOptionsTests.cs (2)
37Assert.Contains(("Foo", (object?)"FooValue"), receiver.Received); 38Assert.Contains(("Bar", (object?)"BarValue"), receiver.Received);
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
ContextualOptionsTests.cs (2)
37Assert.Contains(("Foo", (object?)"FooValue"), receiver.Received); 38Assert.Contains(("Bar", (object?)"BarValue"), receiver.Received);
EmitterTests.cs (2)
70Assert.Contains("receiver.Receive(nameof(Foo), Foo);", statements); 71Assert.Contains("receiver.Receive(nameof(Bar), Bar);", statements);
Microsoft.ML.AutoML.Tests (8)
ColumnInformationUtilTests.cs (8)
66Assert.Contains("Label", columnNames); 67Assert.Contains("SamplingKey", columnNames); 68Assert.Contains("UserId", columnNames); 69Assert.Contains("MovieId", columnNames); 70Assert.Contains("GroupId", columnNames); 71Assert.Contains("Cat1", columnNames); 72Assert.Contains("Cat2", columnNames); 73Assert.Contains("Num", columnNames);
Microsoft.ML.IntegrationTests (1)
Debugging.cs (1)
121Assert.Contains("Score", columnNames);
Microsoft.ML.Tests (19)
Scenarios\Api\TestApi.cs (14)
458Assert.Contains(1, ids); 459Assert.Contains(5, ids); 462Assert.Contains(4, ids); 463Assert.Contains(5, ids); 466Assert.Contains(0, ids); 467Assert.Contains(4, ids); 470Assert.Contains(5, ids); 471Assert.Contains(6, ids); 474Assert.Contains(4, ids); 475Assert.Contains(7, ids); 478Assert.Contains(1, ids); 479Assert.Contains(2, ids); 484Assert.Contains(1, ids); 485Assert.Contains(5, ids);
Transformers\TextFeaturizerTests.cs (5)
753Assert.Contains("SentimentText", outputSchema.Select(col => col.Name)); 754Assert.Contains("Label", outputSchema.Select(col => col.Name)); 755Assert.Contains("Features", outputSchema.Select(col => col.Name)); 756Assert.Contains("PredictedLabel", outputSchema.Select(col => col.Name)); 757Assert.Contains("Score", outputSchema.Select(col => col.Name));
Microsoft.VisualBasic.Tests (7)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (7)
279Assert.Contains(Path.Combine(TestDirectory, $"GetDirectories_DirectoryNewSubDirectory{i}"), DirectoryList); 301Assert.Contains(Path.Combine(TestDirectory, $"GetDirectories_Directory_SearchOptionNewSubDirectory{i}"), DirectoryList); 327Assert.Contains(DirectoryName, DirectoryList); 403Assert.Contains(Path.Combine(TestDirectory, $"NewFile{i}"), FileList); 430Assert.Contains(Path.Combine(TestDirectory, $"NewFile{i}"), FileList); 456Assert.Contains(FileList[i], TestFileList); 463Assert.Contains(TestFileList[^1], FileList);
Roslyn.VisualStudio.Next.UnitTests (1)
Options\VisualStudioOptionStorageTests.cs (1)
274Assert.Contains(configName, optionsWithoutStorage);
Shared.Tests (22)
Data.Validation\LengthAttributeTests.cs (12)
41Assert.Contains(nameof(options.Name), results[0].MemberNames); 55Assert.Contains(nameof(options.Address), results[0].MemberNames); 62Assert.Contains(nameof(options.Address), results[0].MemberNames); 97Assert.Contains(nameof(options.Name), results[0].MemberNames); 111Assert.Contains(nameof(options.Address), results[0].MemberNames); 119Assert.Contains(nameof(options.Address), results[0].MemberNames); 170Assert.Contains(nameof(options.Names), results[0].MemberNames); 188Assert.Contains(nameof(options.Addresses), results[0].MemberNames); 224Assert.Contains(nameof(options.Names), results[0].MemberNames); 236Assert.Contains(nameof(options.Addresses), results[0].MemberNames); 277Assert.Contains(nameof(options.Names), results[0].MemberNames); 295Assert.Contains(nameof(options.Addresses), results[0].MemberNames);
Data.Validation\TimeSpanAttributeTests.cs (10)
39Assert.Contains(nameof(options.Time), results[0].MemberNames); 46Assert.Contains(nameof(options.Time), results[0].MemberNames); 64Assert.Contains(nameof(options.Time2), results[0].MemberNames); 104Assert.Contains(nameof(options.Time), results[0].MemberNames); 111Assert.Contains(nameof(options.Time), results[0].MemberNames); 125Assert.Contains(nameof(options.Time2), results[0].MemberNames); 132Assert.Contains(nameof(options.Time2), results[0].MemberNames); 167Assert.Contains(nameof(options.Time), results[0].MemberNames); 174Assert.Contains(nameof(options.Time), results[0].MemberNames); 192Assert.Contains(nameof(options.Time2), results[0].MemberNames);
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
735Assert.Contains("get_accChild", getterNames);
System.Windows.Forms.Tests (101)
System\Windows\Forms\CursorConverterTests.cs (28)
196Assert.Contains(Cursors.AppStarting, values); 197Assert.Contains(Cursors.Arrow, values); 198Assert.Contains(Cursors.Cross, values); 199Assert.Contains(Cursors.Default, values); 200Assert.Contains(Cursors.Hand, values); 201Assert.Contains(Cursors.Help, values); 202Assert.Contains(Cursors.HSplit, values); 203Assert.Contains(Cursors.IBeam, values); 204Assert.Contains(Cursors.No, values); 205Assert.Contains(Cursors.NoMove2D, values); 206Assert.Contains(Cursors.NoMoveHoriz, values); 207Assert.Contains(Cursors.NoMoveVert, values); 208Assert.Contains(Cursors.PanEast, values); 209Assert.Contains(Cursors.PanNE, values); 210Assert.Contains(Cursors.PanNorth, values); 211Assert.Contains(Cursors.PanNW, values); 212Assert.Contains(Cursors.PanSE, values); 213Assert.Contains(Cursors.PanSouth, values); 214Assert.Contains(Cursors.PanSW, values); 215Assert.Contains(Cursors.PanWest, values); 216Assert.Contains(Cursors.SizeAll, values); 217Assert.Contains(Cursors.SizeNESW, values); 218Assert.Contains(Cursors.SizeNS, values); 219Assert.Contains(Cursors.SizeNWSE, values); 220Assert.Contains(Cursors.SizeWE, values); 221Assert.Contains(Cursors.UpArrow, values); 222Assert.Contains(Cursors.VSplit, values); 223Assert.Contains(Cursors.WaitCursor, values);
System\Windows\Forms\KeysConverterTests.cs (1)
160Assert.Contains(key, actualValues);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (48)
248Assert.Contains(GetNativeScreenRectangle(listView.Items[1]), neighboringToolsRectangles); 249Assert.Contains(GetNativeScreenRectangle(listView.Items[3]), neighboringToolsRectangles); 266Assert.Contains(GetNativeScreenRectangle(listView.Items[0]), neighboringToolsRectangles); 267Assert.Contains(GetNativeScreenRectangle(listView.Items[2]), neighboringToolsRectangles); 268Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 285Assert.Contains(GetNativeScreenRectangle(listView.Items[1]), neighboringToolsRectangles); 286Assert.Contains(GetNativeScreenRectangle(listView.Items[5]), neighboringToolsRectangles); 303Assert.Contains(GetNativeScreenRectangle(listView.Items[0]), neighboringToolsRectangles); 304Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 305Assert.Contains(GetNativeScreenRectangle(listView.Items[6]), neighboringToolsRectangles); 322Assert.Contains(GetNativeScreenRectangle(listView.Items[1]), neighboringToolsRectangles); 323Assert.Contains(GetNativeScreenRectangle(listView.Items[3]), neighboringToolsRectangles); 324Assert.Contains(GetNativeScreenRectangle(listView.Items[5]), neighboringToolsRectangles); 325Assert.Contains(GetNativeScreenRectangle(listView.Items[7]), neighboringToolsRectangles); 342Assert.Contains(GetNativeScreenRectangle(listView.Items[2]), neighboringToolsRectangles); 343Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 344Assert.Contains(GetNativeScreenRectangle(listView.Items[8]), neighboringToolsRectangles); 361Assert.Contains(GetNativeScreenRectangle(listView.Items[3]), neighboringToolsRectangles); 362Assert.Contains(GetNativeScreenRectangle(listView.Items[7]), neighboringToolsRectangles); 379Assert.Contains(GetNativeScreenRectangle(listView.Items[6]), neighboringToolsRectangles); 380Assert.Contains(GetNativeScreenRectangle(listView.Items[8]), neighboringToolsRectangles); 381Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 398Assert.Contains(GetNativeScreenRectangle(listView.Items[5]), neighboringToolsRectangles); 399Assert.Contains(GetNativeScreenRectangle(listView.Items[7]), neighboringToolsRectangles); 417Assert.Contains(GetNativeScreenRectangle(listView.Items[1]), neighboringToolsRectangles); 418Assert.Contains(GetNativeScreenRectangle(listView.Items[3]), neighboringToolsRectangles); 437Assert.Contains(GetNativeScreenRectangle(listView.Items[0]), neighboringToolsRectangles); 438Assert.Contains(GetNativeScreenRectangle(listView.Items[2]), neighboringToolsRectangles); 439Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 458Assert.Contains(GetNativeScreenRectangle(listView.Items[1]), neighboringToolsRectangles); 459Assert.Contains(GetNativeScreenRectangle(listView.Items[5]), neighboringToolsRectangles); 478Assert.Contains(GetNativeScreenRectangle(listView.Items[0]), neighboringToolsRectangles); 479Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 480Assert.Contains(GetNativeScreenRectangle(listView.Items[6]), neighboringToolsRectangles); 499Assert.Contains(GetNativeScreenRectangle(listView.Items[1]), neighboringToolsRectangles); 500Assert.Contains(GetNativeScreenRectangle(listView.Items[3]), neighboringToolsRectangles); 501Assert.Contains(GetNativeScreenRectangle(listView.Items[5]), neighboringToolsRectangles); 502Assert.Contains(GetNativeScreenRectangle(listView.Items[7]), neighboringToolsRectangles); 521Assert.Contains(GetNativeScreenRectangle(listView.Items[2]), neighboringToolsRectangles); 522Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 523Assert.Contains(GetNativeScreenRectangle(listView.Items[8]), neighboringToolsRectangles); 542Assert.Contains(GetNativeScreenRectangle(listView.Items[3]), neighboringToolsRectangles); 543Assert.Contains(GetNativeScreenRectangle(listView.Items[7]), neighboringToolsRectangles); 561Assert.Contains(GetNativeScreenRectangle(listView.Items[6]), neighboringToolsRectangles); 562Assert.Contains(GetNativeScreenRectangle(listView.Items[8]), neighboringToolsRectangles); 563Assert.Contains(GetNativeScreenRectangle(listView.Items[4]), neighboringToolsRectangles); 581Assert.Contains(GetNativeScreenRectangle(listView.Items[5]), neighboringToolsRectangles); 582Assert.Contains(GetNativeScreenRectangle(listView.Items[7]), neighboringToolsRectangles);
System\Windows\Forms\ScreenTests.cs (1)
208Assert.Contains(screen.BitsPerPixel, new int[] { 1, 2, 4, 8, 16, 24, 32, 48, 64 });
System\Windows\Forms\SystemInformationTests.cs (1)
117Assert.Contains(size, new Size[] { new(32, 32), new(48, 48), new(64, 64) });
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (18)
127Assert.Contains(GetRectangle(treeView, treeView.Nodes[1]), neighboringRectangles); 143Assert.Contains(GetRectangle(treeView, treeView.Nodes[0]), neighboringRectangles); 144Assert.Contains(GetRectangle(treeView, treeView.Nodes[2]), neighboringRectangles); 160Assert.Contains(GetRectangle(treeView, treeView.Nodes[1]), neighboringRectangles); 178Assert.Contains(GetRectangle(treeView, rootNode), neighboringRectangles); 179Assert.Contains(GetRectangle(treeView, rootNode.Nodes[1]), neighboringRectangles); 197Assert.Contains(GetRectangle(treeView, rootNode.Nodes[0]), neighboringRectangles); 198Assert.Contains(GetRectangle(treeView, rootNode.Nodes[2]), neighboringRectangles); 216Assert.Contains(GetRectangle(treeView, rootNode.Nodes[1]), neighboringRectangles); 217Assert.Contains(GetRectangle(treeView, treeView.Nodes[1]), neighboringRectangles); 237Assert.Contains(GetRectangle(treeView, treeView.Nodes[1]), neighboringRectangles); 238Assert.Contains(GetRectangle(treeView, lastSubNode), neighboringRectangles); 256Assert.Contains(GetRectangle(treeView, treeView.Nodes[2]), neighboringRectangles); 257Assert.Contains(GetRectangle(treeView, firstNode.Nodes[2]), neighboringRectangles); 277Assert.Contains(GetRectangle(treeView, treeView.Nodes[2]), neighboringRectangles); 278Assert.Contains(GetRectangle(treeView, subNode.Nodes[0]), neighboringRectangles); 297Assert.Contains(GetRectangle(treeView, rootNode.Nodes[1]), neighboringRectangles); 298Assert.Contains(GetRectangle(treeView, lastSubNode.Nodes[0]), neighboringRectangles);
System\Windows\Forms\TreeNodeTests.cs (4)
4618Assert.Contains(rootNode, nodes); 4619Assert.Contains(subNodeLevel1, nodes); 4620Assert.Contains(subNodeLevel2, nodes); 4621Assert.Contains(subNodeLevel3, nodes);
Templates.Tests (1)
BaselineTest.cs (1)
103Assert.Contains(relativePath, expectedFiles);
xunit.assert (1)
AsyncCollectionAsserts.cs (1)
115 Contains(expected, AssertHelper.ToEnumerable(collection));