Changed expected parameter p2 to non-optional as it is non-optional in the template string.

Fixes test.
This commit is contained in:
Joonas Westlin 2017-05-22 22:16:46 +03:00 committed by Ryan Nowak
parent efb097ce60
commit f457c7b9d8
1 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ namespace Microsoft.AspNetCore.Routing.Template.Tests
Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
}
[Fact(Skip = "Fails")]
[Fact]
public void Parse_ComplexSegment_OptionalParameterFollowingPeriod_LastSegment()
{
// Arrange
@ -420,7 +420,7 @@ namespace Microsoft.AspNetCore.Routing.Template.Tests
expected.Segments.Add(new TemplateSegment());
expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p2",
false,
true,
false,
defaultValue: null,
inlineConstraints: null));
expected.Segments[1].Parts.Add(TemplatePart.CreateLiteral("."));