Return a copy of the route values in functional tests.
This is a workaround for a Json.Net + CoreCLR issue.
This commit is contained in:
parent
7ec4ab021e
commit
99d053ef81
|
|
@ -2,6 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
using Microsoft.Framework.DependencyInjection;
|
using Microsoft.Framework.DependencyInjection;
|
||||||
|
|
@ -40,7 +41,7 @@ namespace RoutingWebSite
|
||||||
{
|
{
|
||||||
expectedUrls = expectedUrls,
|
expectedUrls = expectedUrls,
|
||||||
actualUrl = _actionContext.HttpContext.Request.Path.Value,
|
actualUrl = _actionContext.HttpContext.Request.Path.Value,
|
||||||
routeValues = _actionContext.RouteData.Values,
|
routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
|
||||||
|
|
||||||
action = _actionContext.ActionDescriptor.Name,
|
action = _actionContext.ActionDescriptor.Name,
|
||||||
controller = ((ReflectedActionDescriptor)_actionContext.ActionDescriptor).ControllerDescriptor.Name,
|
controller = ((ReflectedActionDescriptor)_actionContext.ActionDescriptor).ControllerDescriptor.Name,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue