46 references to Segment
Microsoft.AspNetCore.Routing.Tests (46)
Patterns\RoutePatternFactoryTest.cs (21)
412
RoutePatternFactory.
Segment
(literalPartA, paramPartB),
413
RoutePatternFactory.
Segment
(paramPartC, literalPartA),
414
RoutePatternFactory.
Segment
(paramPartD),
415
RoutePatternFactory.
Segment
(literalPartA)
420
segments[1] = RoutePatternFactory.
Segment
(RoutePatternFactory.ParameterPart("E"));
441
RoutePatternFactory.
Segment
(literalPartA, paramPartB),
442
RoutePatternFactory.
Segment
(paramPartC, literalPartA),
443
RoutePatternFactory.
Segment
(paramPartD),
444
RoutePatternFactory.
Segment
(literalPartA)
449
segments[1] = RoutePatternFactory.
Segment
(RoutePatternFactory.ParameterPart("E"));
471
RoutePatternFactory.
Segment
(literalPartA, paramPartB),
472
RoutePatternFactory.
Segment
(paramPartC, literalPartA),
473
RoutePatternFactory.
Segment
(paramPartD),
474
RoutePatternFactory.
Segment
(literalPartA)
479
segments[1] = RoutePatternFactory.
Segment
(RoutePatternFactory.ParameterPart("E"));
511
RoutePatternFactory.
Segment
(literalPartA, paramPartB),
512
RoutePatternFactory.
Segment
(paramPartC, literalPartA),
513
RoutePatternFactory.
Segment
(paramPartD),
514
RoutePatternFactory.
Segment
(literalPartA)
519
segments[1] = RoutePatternFactory.
Segment
(RoutePatternFactory.ParameterPart("E"));
706
var actual = RoutePatternFactory.
Segment
(parts);
Patterns\RoutePatternParserTest.cs (24)
20
Segment
(LiteralPart("cool")));
35
var expected = Pattern(template,
Segment
(ParameterPart("p")));
50
var expected = Pattern(template,
Segment
(ParameterPart("p", null, RoutePatternParameterKind.Optional)));
67
Segment
(LiteralPart("cool")),
68
Segment
(LiteralPart("awesome")),
69
Segment
(LiteralPart("super")));
86
Segment
(ParameterPart("p1")),
87
Segment
(ParameterPart("p2")),
88
Segment
(ParameterPart("p3", null, RoutePatternParameterKind.CatchAll)));
105
Segment
(
124
Segment
(
143
Segment
(
163
Segment
(
183
Segment
(
203
Segment
(
223
Segment
(
245
Segment
(
267
Segment
(
271
Segment
(
289
Segment
(
291
Segment
(
311
Segment
(ParameterPart("p2")),
312
Segment
(
334
Segment
(
Template\TemplateSegmentTest.cs (1)
28
var templateSegment = new TemplateSegment(RoutePatternFactory.
Segment
(paramPartC, literalPartA, separatorPartE, paramPartB));