101 references to IsValidCandidate
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionConstraintMatcherPolicy.cs (1)
114if (candidateSet.IsValidCandidate(i))
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
71if (!candidates.IsValidCandidate(i))
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (8)
125Assert.False(candidates.IsValidCandidate(0)); 156Assert.False(candidates.IsValidCandidate(0)); 202Assert.True(candidates.IsValidCandidate(0)); 290Assert.True(candidates.IsValidCandidate(0)); 329Assert.False(candidates.IsValidCandidate(0)); 391Assert.True(candidates.IsValidCandidate(0)); 431Assert.True(candidates.IsValidCandidate(0)); 432Assert.True(candidates.IsValidCandidate(1));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
PageLoaderMatcherPolicy.cs (2)
62if (!candidates.IsValidCandidate(i)) 103if (!candidates.IsValidCandidate(i))
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
73if (!candidates.IsValidCandidate(i))
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (8)
142Assert.False(candidates.IsValidCandidate(0)); 173Assert.False(candidates.IsValidCandidate(0)); 213Assert.True(candidates.IsValidCandidate(0)); 264Assert.True(candidates.IsValidCandidate(0)); 332Assert.False(candidates.IsValidCandidate(0)); 392Assert.True(candidates.IsValidCandidate(0)); 431Assert.True(candidates.IsValidCandidate(0)); 432Assert.True(candidates.IsValidCandidate(1));
Microsoft.AspNetCore.Mvc.Test (22)
Routing\ActionConstraintMatcherPolicyTest.cs (22)
36Assert.True(candidateSet.IsValidCandidate(0)); 37Assert.True(candidateSet.IsValidCandidate(1)); 69Assert.True(candidateSet.IsValidCandidate(0)); 70Assert.False(candidateSet.IsValidCandidate(1)); 104Assert.False(candidateSet.IsValidCandidate(0)); 105Assert.False(candidateSet.IsValidCandidate(1)); 140Assert.False(candidateSet.IsValidCandidate(0)); 141Assert.False(candidateSet.IsValidCandidate(1)); 175Assert.True(candidateSet.IsValidCandidate(0)); 176Assert.False(candidateSet.IsValidCandidate(1)); 213Assert.False(candidateSet.IsValidCandidate(0)); 214Assert.False(candidateSet.IsValidCandidate(1)); 215Assert.True(candidateSet.IsValidCandidate(2)); 248Assert.False(candidateSet.IsValidCandidate(0)); 249Assert.True(candidateSet.IsValidCandidate(1)); 250Assert.False(candidateSet.IsValidCandidate(2)); 289Assert.True(candidateSet.IsValidCandidate(0)); 290Assert.False(candidateSet.IsValidCandidate(1)); 330Assert.True(candidateSet.IsValidCandidate(0)); 331Assert.False(candidateSet.IsValidCandidate(1)); 332Assert.False(candidateSet.IsValidCandidate(2)); 368Assert.True(candidateSet.IsValidCandidate(0));
Microsoft.AspNetCore.Routing (4)
Matching\AcceptsMatcherPolicy.cs (1)
72if (!candidates.IsValidCandidate(i))
Matching\HostMatcherPolicy.cs (1)
78if (!candidates.IsValidCandidate(i))
Matching\HttpMethodMatcherPolicy.cs (1)
110if (!candidates.IsValidCandidate(i))
Matching\NegotiationMatcherPolicy.cs (1)
100if (!candidates.IsValidCandidate(i))
Microsoft.AspNetCore.Routing.Tests (54)
Matching\AcceptsMatcherPolicyTest.cs (12)
331Assert.True(candidates.IsValidCandidate(0)); 352Assert.True(candidates.IsValidCandidate(0)); 373Assert.True(candidates.IsValidCandidate(0)); 400Assert.True(candidates.IsValidCandidate(0)); 427Assert.True(candidates.IsValidCandidate(0)); 454Assert.True(candidates.IsValidCandidate(0)); 481Assert.True(candidates.IsValidCandidate(0)); 508Assert.True(candidates.IsValidCandidate(0)); 535Assert.False(candidates.IsValidCandidate(0)); 564Assert.False(candidates.IsValidCandidate(0)); 593Assert.False(candidates.IsValidCandidate(0)); 594Assert.True(candidates.IsValidCandidate(1));
Matching\CandidateSetTest.cs (7)
34Assert.True(candidateSet.IsValidCandidate(i)); 40Assert.False(candidateSet.IsValidCandidate(i)); 73Assert.True(candidateSet.IsValidCandidate(i)); 103Assert.False(candidateSet.IsValidCandidate(i)); 133Assert.False(candidateSet.IsValidCandidate(0)); 359Assert.True(candidateSet.IsValidCandidate(i)); 366Assert.False(candidateSet.IsValidCandidate(i));
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (29)
86Assert.True(endpoints.IsValidCandidate(0)); 87Assert.False(endpoints.IsValidCandidate(1)); 106Assert.False(endpoints.IsValidCandidate(0)); 107Assert.True(endpoints.IsValidCandidate(1)); 126Assert.True(endpoints.IsValidCandidate(0)); 127Assert.False(endpoints.IsValidCandidate(1)); 146Assert.False(endpoints.IsValidCandidate(0)); 147Assert.True(endpoints.IsValidCandidate(1)); 166Assert.False(endpoints.IsValidCandidate(1)); 167Assert.True(endpoints.IsValidCandidate(0)); 186Assert.True(endpoints.IsValidCandidate(0)); 187Assert.False(endpoints.IsValidCandidate(1)); 205Assert.False(endpoints.IsValidCandidate(0)); 206Assert.False(endpoints.IsValidCandidate(1)); 226Assert.False(endpoints.IsValidCandidate(0)); 227Assert.False(endpoints.IsValidCandidate(1)); 228Assert.True(endpoints.IsValidCandidate(2)); 247Assert.True(endpoints.IsValidCandidate(0)); 248Assert.False(endpoints.IsValidCandidate(1)); 266Assert.True(endpoints.IsValidCandidate(0)); 267Assert.False(endpoints.IsValidCandidate(1)); 285Assert.False(endpoints.IsValidCandidate(0)); 286Assert.False(endpoints.IsValidCandidate(1)); 304Assert.True(endpoints.IsValidCandidate(0)); 305Assert.False(endpoints.IsValidCandidate(1)); 323Assert.True(endpoints.IsValidCandidate(0)); 324Assert.False(endpoints.IsValidCandidate(1)); 341Assert.True(endpoints.IsValidCandidate(0)); 342Assert.False(endpoints.IsValidCandidate(1));
Matching\DfaMatcherTest.cs (6)
654Assert.True(cs.IsValidCandidate(0)); 659Assert.True(cs.IsValidCandidate(1)); 700Assert.True(cs.IsValidCandidate(0)); 705Assert.True(cs.IsValidCandidate(1)); 747Assert.True(cs.IsValidCandidate(0)); 752Assert.True(cs.IsValidCandidate(1));