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