33 references to Contains
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\HttpLoggingServiceExtensionsTests.cs (2)
51
Assert.
Contains
("/path0toexclude", options.ExcludePathStartsWith);
52
Assert.
Contains
("/path1toexclude", options.ExcludePathStartsWith);
Microsoft.AspNetCore.OpenApi.Tests (12)
Services\CreateSchemaReferenceIdTests.cs (1)
42
Assert.
Contains
(schema.Discriminator.PropertyName, schema.Required);
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (8)
79
Assert.
Contains
("formFile", schema.Required);
156
Assert.
Contains
("formFile", schema.Required);
422
Assert.
Contains
("id", item.Schema.Required);
423
Assert.
Contains
("title", item.Schema.Required);
424
Assert.
Contains
("completed", item.Schema.Required);
425
Assert.
Contains
("createdAt", item.Schema.Required);
479
Assert.
Contains
("id", item.Schema.Required);
480
Assert.
Contains
("date", item.Schema.Required);
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (3)
29
Assert.
Contains
(schema.Discriminator.PropertyName, schema.Required);
66
Assert.
Contains
(schema.Discriminator.PropertyName, schema.Required);
111
Assert.
Contains
(schema.Discriminator.PropertyName, schema.Required);
Microsoft.CodeAnalysis.UnitTests (12)
Analyzers\AnalyzerFileReferenceTests.cs (12)
103
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzerCS", analyzerTypeNameMap[LanguageNames.CSharp]);
104
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.TestAnalyzerCSVB", analyzerTypeNameMap[LanguageNames.CSharp]);
105
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]);
106
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+SomeType+NestedAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]);
107
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AbstractAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]);
108
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.OpenGenericAnalyzer`1", analyzerTypeNameMap[LanguageNames.CSharp]);
112
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzerVB", analyzerTypeNameMap[LanguageNames.VisualBasic]);
113
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.TestAnalyzerCSVB", analyzerTypeNameMap[LanguageNames.VisualBasic]);
114
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzer", analyzerTypeNameMap[LanguageNames.VisualBasic]);
115
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+SomeType+NestedAnalyzer", analyzerTypeNameMap[LanguageNames.VisualBasic]);
116
Assert.
Contains
("Microsoft.CodeAnalysis.UnitTests.AbstractAnalyzer", analyzerTypeNameMap[LanguageNames.VisualBasic]);
117
Assert.
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);