81 references to MatcherAssert
Microsoft.AspNetCore.Routing.Tests (81)
DefaultLinkParserTest.cs (3)
79MatcherAssert.AssertRouteValuesEqual(new { controller = "Home", action = "Index", id = "17" }, values); 99MatcherAssert.AssertRouteValuesEqual(new { controller = "Home", action = "Index", }, values); 115MatcherAssert.AssertRouteValuesEqual(new { controller = "Home", action = "Index", id2 = "abc" }, values);
LinkParserEndpointNameExtensionsTest.cs (1)
53MatcherAssert.AssertRouteValuesEqual(new { controller = "Home", action = "Index", id = "17" }, values);
Matching\DfaMatcherConformanceTest.cs (2)
22MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 54MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true);
Matching\FullFeaturedMatcherConformanceTest.cs (18)
32MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 47MatcherAssert.AssertMatch(httpContext, endpoint, new { b = "17", c = "18", }); 62MatcherAssert.AssertMatch(httpContext, endpoint, new { b = "17", c = "18", d = "19" }); 87MatcherAssert.AssertNotMatch(httpContext); 119MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 142MatcherAssert.AssertNotMatch(httpContext); 166MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 186MatcherAssert.AssertNotMatch(httpContext); 221MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 241MatcherAssert.AssertNotMatch(httpContext); 270MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 296MatcherAssert.AssertNotMatch(httpContext); 321MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 351MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true); 385MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true); 438MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true); 468MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true); 499MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true);
Matching\HostMatcherPolicyIntegrationTestBase.cs (22)
28MatcherAssert.AssertMatch(httpContext, endpoint); 44MatcherAssert.AssertMatch(httpContext, endpoint); 60MatcherAssert.AssertMatch(httpContext, endpoint); 76MatcherAssert.AssertNotMatch(httpContext); 92MatcherAssert.AssertNotMatch(httpContext); 108MatcherAssert.AssertMatch(httpContext, endpoint); 124MatcherAssert.AssertNotMatch(httpContext); 140MatcherAssert.AssertMatch(httpContext, endpoint); 156MatcherAssert.AssertMatch(httpContext, endpoint); 172MatcherAssert.AssertNotMatch(httpContext); 188MatcherAssert.AssertMatch(httpContext, endpoint); 204MatcherAssert.AssertMatch(httpContext, endpoint); 220MatcherAssert.AssertMatch(httpContext, endpoint); 236MatcherAssert.AssertMatch(httpContext, endpoint); 252MatcherAssert.AssertNotMatch(httpContext); 268MatcherAssert.AssertMatch(httpContext, endpoint); 284MatcherAssert.AssertMatch(httpContext, endpoint); 300MatcherAssert.AssertMatch(httpContext, endpoint); 316MatcherAssert.AssertMatch(httpContext, endpoint); 332MatcherAssert.AssertMatch(httpContext, endpoint); 348MatcherAssert.AssertMatch(httpContext, endpoint, new { path = "hello" }); 364MatcherAssert.AssertNotMatch(httpContext);
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (16)
30MatcherAssert.AssertMatch(httpContext, endpoint); 46MatcherAssert.AssertMatch(httpContext, endpoint); 62MatcherAssert.AssertMatch(httpContext, endpoint); 97MatcherAssert.AssertMatch(httpContext, endpoint); 115MatcherAssert.AssertMatch(httpContext, endpoint); 131MatcherAssert.AssertMatch(httpContext, endpoint); 147MatcherAssert.AssertMatch(httpContext, endpoint); 163MatcherAssert.AssertMatch(httpContext, endpoint); 179MatcherAssert.AssertMatch(httpContext, endpoint); 221MatcherAssert.AssertNotMatch(httpContext); 238MatcherAssert.AssertNotMatch(httpContext); 255MatcherAssert.AssertMatch(httpContext, endpoint1); 272MatcherAssert.AssertMatch(httpContext, endpoint1); 289MatcherAssert.AssertMatch(httpContext, endpoint2, ignoreValues: true); 336MatcherAssert.AssertMatch(httpContext1, endpoint1); 343MatcherAssert.AssertMatch(httpContext2, endpoint2);
Matching\MatcherConformanceTest.SingleEndpoint.cs (17)
19MatcherAssert.AssertMatch(httpContext, endpoint); 33MatcherAssert.AssertMatch(httpContext, endpoint); 47MatcherAssert.AssertMatch(httpContext, endpoint); 64MatcherAssert.AssertMatch(httpContext, endpoint); 81MatcherAssert.AssertMatch(httpContext, endpoint); 99MatcherAssert.AssertMatch(httpContext, endpoint); 119MatcherAssert.AssertNotMatch(httpContext); 136MatcherAssert.AssertMatch(httpContext, endpoint); 159MatcherAssert.AssertMatch(httpContext, endpoint); 190MatcherAssert.AssertNotMatch(httpContext); 205MatcherAssert.AssertMatch(httpContext, endpoint, values); 220MatcherAssert.AssertMatch(httpContext, endpoint, values); 235MatcherAssert.AssertMatch(httpContext, endpoint, values); 255MatcherAssert.AssertMatch(httpContext, endpoint, values); 273MatcherAssert.AssertNotMatch(httpContext); 294MatcherAssert.AssertMatch(httpContext, endpoint, keys, values); 323MatcherAssert.AssertNotMatch(httpContext);
Matching\RouteMatcherConformanceTest.cs (1)
38MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true);
Matching\TreeRouterMatcherConformanceTest.cs (1)
52MatcherAssert.AssertMatch(httpContext, expected, ignoreValues: true);