@@ -184,8 +184,6 @@ public void Parse_MixedLiteralParameterAndCatchAllParameter()
184
184
[ InlineData ( "{p*}" ) ]
185
185
[ InlineData ( "{{}" ) ]
186
186
[ InlineData ( "{}}" ) ]
187
- [ InlineData ( "{=}" ) ]
188
- [ InlineData ( "{.}" ) ]
189
187
public void Components_ParseRouteParameter_ThrowsIf_ParameterContainsSpecialCharacters ( string template )
190
188
{
191
189
var tree = Test ( @"""" + template + @"""" , routePatternOptions : RoutePatternOptions . ComponentsRoute , allowDiagnosticsMismatch : true ) ;
@@ -286,7 +284,7 @@ public void InvalidTemplate_NonOptionalParamAfterOptionalParam()
286
284
}
287
285
288
286
[ Fact ]
289
- public void InvalidTemplate_CatchAllParamWithMultipleAsterisks ( )
287
+ public void Template_CatchAllParamWithMultipleAsterisks ( )
290
288
{
291
289
Test ( @"""/test/{a}/{**b}""" , @"<Tree>
292
290
<CompilationUnit>
@@ -327,9 +325,6 @@ public void InvalidTemplate_CatchAllParamWithMultipleAsterisks()
327
325
</Segment>
328
326
<EndOfFile />
329
327
</CompilationUnit>
330
- <Diagnostics>
331
- <Diagnostic Message=""A catch-all parameter may only have one '*' at the beginning of the segment."" Span=""[20..22)"" Text=""**"" />
332
- </Diagnostics>
333
328
<Parameters>
334
329
<Parameter Name=""a"" IsCatchAll=""false"" IsOptional=""false"" EncodeSlashes=""true"" />
335
330
<Parameter Name=""b"" IsCatchAll=""true"" IsOptional=""false"" EncodeSlashes=""false"" />
@@ -458,9 +453,6 @@ public void Components_TestParameterWithDefault()
458
453
</Segment>
459
454
<EndOfFile />
460
455
</CompilationUnit>
461
- <Diagnostics>
462
- <Diagnostic Message=""A parameter with a default value isn't supported."" Span=""[12..17)"" Text=""=Home"" />
463
- </Diagnostics>
464
456
<Parameters>
465
457
<Parameter Name=""id"" IsCatchAll=""false"" IsOptional=""false"" EncodeSlashes=""true"" DefaultValue=""Home"" />
466
458
</Parameters>
@@ -496,9 +488,6 @@ public void Components_Parse_ComplexSegment_OptionalParameterFollowingPeriod()
496
488
</Segment>
497
489
<EndOfFile />
498
490
</CompilationUnit>
499
- <Diagnostics>
500
- <Diagnostic Message=""Complex segment is not supported."" Span=""[9..19)"" Text=""{p1}.{p2?}"" />
501
- </Diagnostics>
502
491
<Parameters>
503
492
<Parameter Name=""p1"" IsCatchAll=""false"" IsOptional=""false"" EncodeSlashes=""true"" />
504
493
<Parameter Name=""p2"" IsCatchAll=""false"" IsOptional=""true"" EncodeSlashes=""true"" />
0 commit comments