Fix failing routing tests
This commit is contained in:
parent
1fd3fb764a
commit
61d33bed27
|
|
@ -120,7 +120,7 @@ namespace Microsoft.AspNetCore.Builder
|
||||||
// Assert
|
// Assert
|
||||||
Assert.Equal(
|
Assert.Equal(
|
||||||
"EndpointRoutingMiddleware must be added to the request execution pipeline before EndpointMiddleware. " +
|
"EndpointRoutingMiddleware must be added to the request execution pipeline before EndpointMiddleware. " +
|
||||||
"Please add EndpointRoutingMiddleware by calling 'IApplicationBuilder.UseEndpointRouting' " +
|
"Please add EndpointRoutingMiddleware by calling 'IApplicationBuilder.UseRouting' " +
|
||||||
"inside the call to 'Configure(...)' in the application startup code.",
|
"inside the call to 'Configure(...)' in the application startup code.",
|
||||||
ex.Message);
|
ex.Message);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Routing.Tests
|
||||||
[InlineData(3.14, true)]
|
[InlineData(3.14, true)]
|
||||||
[InlineData("not-parseable-as-float", false)]
|
[InlineData("not-parseable-as-float", false)]
|
||||||
[InlineData(false, false)]
|
[InlineData(false, false)]
|
||||||
[InlineData("1.79769313486232E+300", false)]
|
[InlineData("1.79769313486232E+300", true)] // Parses as infinity
|
||||||
public void FloatRouteConstraint_ApplyConstraint(object parameterValue, bool expected)
|
public void FloatRouteConstraint_ApplyConstraint(object parameterValue, bool expected)
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue