33 references to Contains
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\HttpLoggingServiceExtensionsTests.cs (2)
51Assert.Contains("/path0toexclude", options.ExcludePathStartsWith); 52Assert.Contains("/path1toexclude", options.ExcludePathStartsWith);
Microsoft.AspNetCore.OpenApi.Tests (12)
Services\CreateSchemaReferenceIdTests.cs (1)
42Assert.Contains(schema.Discriminator.PropertyName, schema.Required);
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (8)
79Assert.Contains("formFile", schema.Required); 156Assert.Contains("formFile", schema.Required); 422Assert.Contains("id", item.Schema.Required); 423Assert.Contains("title", item.Schema.Required); 424Assert.Contains("completed", item.Schema.Required); 425Assert.Contains("createdAt", item.Schema.Required); 479Assert.Contains("id", item.Schema.Required); 480Assert.Contains("date", item.Schema.Required);
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (3)
29Assert.Contains(schema.Discriminator.PropertyName, schema.Required); 66Assert.Contains(schema.Discriminator.PropertyName, schema.Required); 111Assert.Contains(schema.Discriminator.PropertyName, schema.Required);
Microsoft.CodeAnalysis.UnitTests (12)
Analyzers\AnalyzerFileReferenceTests.cs (12)
103Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzerCS", analyzerTypeNameMap[LanguageNames.CSharp]); 104Assert.Contains("Microsoft.CodeAnalysis.UnitTests.TestAnalyzerCSVB", analyzerTypeNameMap[LanguageNames.CSharp]); 105Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]); 106Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+SomeType+NestedAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]); 107Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AbstractAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]); 108Assert.Contains("Microsoft.CodeAnalysis.UnitTests.OpenGenericAnalyzer`1", analyzerTypeNameMap[LanguageNames.CSharp]); 112Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzerVB", analyzerTypeNameMap[LanguageNames.VisualBasic]); 113Assert.Contains("Microsoft.CodeAnalysis.UnitTests.TestAnalyzerCSVB", analyzerTypeNameMap[LanguageNames.VisualBasic]); 114Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzer", analyzerTypeNameMap[LanguageNames.VisualBasic]); 115Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+SomeType+NestedAnalyzer", analyzerTypeNameMap[LanguageNames.VisualBasic]); 116Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AbstractAnalyzer", analyzerTypeNameMap[LanguageNames.VisualBasic]); 117Assert.Contains("Microsoft.CodeAnalysis.UnitTests.OpenGenericAnalyzer`1", analyzerTypeNameMap[LanguageNames.VisualBasic]);
Microsoft.DotNet.XUnitAssert.Tests (2)
SetAssertsTests.cs (2)
20 Assert.Contains("FORTY-two", (ISet<string>)set); 50 assertFailure(() => Assert.Contains("FORTY-two", (ISet<string>)set));
xunit.assert (5)
CollectionAsserts.cs (1)
248 Contains(expected, set);
SetAsserts.cs (4)
88 Contains(expected, (ISet<T>)set); 100 Contains(expected, (ISet<T>)set); 113 Contains(expected, (ISet<T>)set); 125 Contains(expected, (ISet<T>)set);