29 references to Contains
Microsoft.AspNetCore.Authentication.Test (3)
OpenIdConnect\OpenIdConnectChallengeTests.cs (3)
731Assert.Contains("redirect_uri", mockBackchannel.PushedParameters); 732Assert.Contains("scope", mockBackchannel.PushedParameters); 733Assert.Contains("client_secret", mockBackchannel.PushedParameters);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsDefaultWriterTest.cs (1)
600Assert.Contains("new-extension", problemDetails.Extensions);
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (2)
117Assert.Contains("Extension1", problemDetails.Extensions); 118Assert.Contains("Extension2", problemDetails.Extensions);
Microsoft.AspNetCore.OpenApi.Tests (9)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (9)
43Assert.Contains("formFile", content.Value.Schema.Properties); 119Assert.Contains("formFileCollection", content.Value.Schema.Properties); 190Assert.Contains("formFile1", allOfItem.Properties); 198Assert.Contains("formFile2", allOfItem.Properties); 226Assert.Contains("formFile", content.Value.Schema.Properties); 253Assert.Contains("formFile", content.Value.Schema.Properties); 485Assert.Contains("id", subSchema.Properties); 490Assert.Contains("date", subSchema.Properties); 496Assert.Contains("value", subSchema.Properties);
Microsoft.AspNetCore.RequestDecompression.Tests (3)
RequestDecompressionOptionsTests.cs (3)
21var brotliProvider = Assert.Contains("br", providers); 24var deflateProvider = Assert.Contains("deflate", providers); 27var gzipProvider = Assert.Contains("gzip", providers);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.cs (1)
801Assert.Contains(fakeHeader, resolvedOptions.Headers);
Microsoft.AspNetCore.WebUtilities.Tests (4)
FormPipeReaderTests.cs (4)
562Assert.Contains("fo", values); 564Assert.Contains("ba", values); 583Assert.Contains("fo", values); 585Assert.Contains("b", values);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (2)
4563Assert.Contains("a", (IDictionary<string, object>)result.HostOutputs); 4565Assert.Contains("b", (IDictionary<string, object>)result.HostOutputs);
Microsoft.DotNet.XUnitAssert.Tests (2)
DictionaryAssertsTests.cs (2)
25 Assert.Equal(42, Assert.Contains("FORTY-two", (IDictionary<string, int>)dictionary)); 56 assertFailure(() => Assert.Contains("FORTY-two", (IDictionary<string, int>)dictionary));
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\Internal\LogRecordExtensions.cs (2)
29var actualValue = Assert.Contains(key, logRecordState); 35var actualValue = Assert.Contains(key, logRecordState);