Merge branch 'merge/release/2.2-to-master'
This commit is contained in:
commit
0d44670c9f
|
|
@ -306,8 +306,8 @@ namespace Microsoft.AspNetCore.Routing
|
|||
public void TryProcessTemplate_ParameterPolicy_Includes_BufferedValues()
|
||||
{
|
||||
// Arrange
|
||||
var endpoint = EndpointFactory.CreateRouteEndpoint("Foo/{bar=BAR}/{id?}", policies: new { bar = new SlugifyParameterTransformer(), });
|
||||
var linkGenerator = CreateLinkGenerator(new RouteOptions() { LowercaseUrls = true }, endpoints: new[] { endpoint, });
|
||||
var endpoint = EndpointFactory.CreateRouteEndpoint("Foo/{bar=MyBar}/{id?}", policies: new { bar = new SlugifyParameterTransformer(), });
|
||||
var linkGenerator = CreateLinkGenerator(endpoints: new[] { endpoint, });
|
||||
var httpContext = CreateHttpContext();
|
||||
|
||||
// Act
|
||||
|
|
@ -321,7 +321,7 @@ namespace Microsoft.AspNetCore.Routing
|
|||
|
||||
// Assert
|
||||
Assert.True(success);
|
||||
Assert.Equal("/foo/bar/18", result.path.ToUriComponent());
|
||||
Assert.Equal("/Foo/my-bar/18", result.path.ToUriComponent());
|
||||
Assert.Equal(string.Empty, result.query.ToUriComponent());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue