Changed expected parameter p2 to non-optional as it is non-optional in the template string.
Fixes test.
This commit is contained in:
parent
efb097ce60
commit
f457c7b9d8
|
|
@ -403,7 +403,7 @@ namespace Microsoft.AspNetCore.Routing.Template.Tests
|
||||||
Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
|
Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "Fails")]
|
[Fact]
|
||||||
public void Parse_ComplexSegment_OptionalParameterFollowingPeriod_LastSegment()
|
public void Parse_ComplexSegment_OptionalParameterFollowingPeriod_LastSegment()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -420,7 +420,7 @@ namespace Microsoft.AspNetCore.Routing.Template.Tests
|
||||||
expected.Segments.Add(new TemplateSegment());
|
expected.Segments.Add(new TemplateSegment());
|
||||||
expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p2",
|
expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p2",
|
||||||
false,
|
false,
|
||||||
true,
|
false,
|
||||||
defaultValue: null,
|
defaultValue: null,
|
||||||
inlineConstraints: null));
|
inlineConstraints: null));
|
||||||
expected.Segments[1].Parts.Add(TemplatePart.CreateLiteral("."));
|
expected.Segments[1].Parts.Add(TemplatePart.CreateLiteral("."));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue