Fix failing routing tests

This commit is contained in:
Ryan Nowak 2018-12-10 13:49:25 -08:00
parent 1fd3fb764a
commit 61d33bed27
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ namespace Microsoft.AspNetCore.Builder
// Assert
Assert.Equal(
"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.",
ex.Message);
}

View File

@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Routing.Tests
[InlineData(3.14, true)]
[InlineData("not-parseable-as-float", 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)
{
// Arrange