1 write to Content
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternParameterPolicyReference.cs (1)
21
Content
= content;
79 references to Content
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
216
var expected = parsedRoutePattern.ParameterPolicies[i].
Content
;
Microsoft.AspNetCore.Mvc.Core (1)
Routing\RoutePatternWriter.cs (1)
49
sb.Append(item.
Content
);
Microsoft.AspNetCore.Routing (5)
ParameterPolicyFactory.cs (3)
40
Debug.Assert(reference.ParameterPolicy != null || reference.
Content
!= null);
47
if (reference.
Content
!= null)
49
return Create(parameter, reference.
Content
);
Patterns\RoutePatternParameterPolicyReference.cs (1)
41
return
Content
;
Template\InlineConstraint.cs (1)
36
Constraint = other.
Content
!;
Microsoft.AspNetCore.Routing.Tests (72)
Patterns\InlineRouteParameterParserTest.cs (66)
81
Assert.Equal("int", constraint.
Content
);
95
Assert.Equal(@"test(\d+)", constraint.
Content
);
109
Assert.Equal("int", constraint.
Content
);
124
Assert.Equal("int", constraint.
Content
);
139
Assert.Equal("int", constraint.
Content
);
153
Assert.Equal(@"test(\d+)", constraint.
Content
);
169
Assert.Equal(@"test(\d+)", constraint.
Content
);
182
constraint => Assert.Equal(@"test(d+)", constraint.
Content
),
183
constraint => Assert.Equal(@"test(w+)", constraint.
Content
));
197
constraint => Assert.Equal(@"test(d+)", constraint.
Content
),
198
constraint => Assert.Equal(@"test(w+)", constraint.
Content
));
211
constraint => Assert.Equal(@"test(\d+)", constraint.
Content
),
212
constraint => Assert.Equal(@"test(\w:+)", constraint.
Content
));
227
constraint => Assert.Equal(@"test(\d+)", constraint.
Content
),
228
constraint => Assert.Equal(@"test(\w+)", constraint.
Content
));
244
constraint => Assert.Equal(@"test(\d+)", constraint.
Content
),
245
constraint => Assert.Equal(@"test(\w+)", constraint.
Content
));
262
Assert.Equal("length(6)", constraint.
Content
);
280
constraint => Assert.Equal("int", constraint.
Content
),
281
constraint => Assert.Equal("test(3)", constraint.
Content
)
325
Assert.Equal(@"test(\})", constraint.
Content
);
340
Assert.Equal(@"test(\})", constraint.
Content
);
353
Assert.Equal(@"test(\))", constraint.
Content
);
368
Assert.Equal(@"test(\))", constraint.
Content
);
381
Assert.Equal(@"test(:)", constraint.
Content
);
396
Assert.Equal(@"test(:)", constraint.
Content
);
409
Assert.Equal(@"test(a:b:c)", constraint.
Content
);
424
Assert.Equal("test", constraint.
Content
);
440
constraint => Assert.Equal("test", constraint.
Content
));
454
constraint => Assert.Equal("test", constraint.
Content
));
467
Assert.Equal(@"test(\w,\w)", constraint.
Content
);
480
Assert.Equal(@"test(\w)", constraint.
Content
);
495
Assert.Equal(@"test(\w,\w)", constraint.
Content
);
511
Assert.Equal("int", constraint.
Content
);
525
Assert.Equal("test(=)", constraint.
Content
);
550
Assert.Equal("test(a==b)", constraint.
Content
);
564
Assert.Equal("test(a==b)", constraint.
Content
);
622
Assert.Equal("test(=)", constraint.
Content
);
635
Assert.Equal(@"test(\{)", constraint.
Content
);
648
Assert.Equal(@"test(\sd)", constraint.
Content
);
663
Assert.Equal(@"test(\{)", constraint.
Content
);
676
Assert.Equal(@"test(\()", constraint.
Content
);
689
Assert.Equal(@"test(\()", constraint.
Content
);
702
Assert.Equal("test(#$%", constraint.
Content
);
715
constraint => Assert.Equal(@"test(#", constraint.
Content
),
716
constraint => Assert.Equal(@"test1", constraint.
Content
));
730
constraint => Assert.Equal(@"test(abc:somevalue)", constraint.
Content
),
731
constraint => Assert.Equal(@"name(test1", constraint.
Content
),
732
constraint => Assert.Equal(@"differentname", constraint.
Content
));
746
Assert.Equal(@"test(constraintvalue", constraint.
Content
);
761
Assert.Equal(@"test(\()", constraint.
Content
);
776
Assert.Equal(@"test(\?)", constraint.
Content
);
791
Assert.Equal(@"test(\?)", constraint.
Content
);
806
Assert.Equal(@"test(\?)", constraint.
Content
);
821
Assert.Equal(@"test(\?)", constraint.
Content
);
836
Assert.Equal(@"test(\?)", constraint.
Content
);
851
constraint => Assert.Equal(@"test(#)", constraint.
Content
),
852
constraint => Assert.Equal(@"$)", constraint.
Content
));
867
Assert.Equal(@"test(#:)$)", constraint.
Content
);
882
Assert.Equal(@"regex(\\(\\(\\(\\()", constraint.
Content
);
897
Assert.Equal(@"regex(^\d{{3}}-\d{{3}}-\d{{4}}$)", constraint.
Content
);
912
Assert.Equal(@"regex(^\d{{3}}-\d{{3}}-\d{{4}}$)", constraint.
Content
);
979
Assert.Equal(constraintContent, constraintReference.
Content
);
997
Assert.Equal(constraintContent, constraintReference.
Content
);
1043
Assert.Equal(constraintContent, constraintReference.
Content
);
1060
Assert.Equal(constraintContent, constraintReference.
Content
);
Patterns\RoutePatternFactoryTest.cs (4)
157
c => Assert.Equal("int", c.
Content
));
170
c => Assert.Equal("int", c.
Content
));
273
c => Assert.Equal("int", c.
Content
));
290
c => Assert.Equal("int", c.
Content
));
Patterns\RoutePatternParserTest.cs (2)
739
x.
Content
== y.
Content
&&