public void GetActionFromRouteData() { var r = new DynamicDataRoute("x2"); var rd = new RouteData(); // rd must have "Action" value r.GetActionFromRouteData(rd); }
public void GetActionFromRouteData2() { var r = new DynamicDataRoute("x"); var rd = new RouteData(); rd.Values["Action"] = "y"; var a = r.GetActionFromRouteData(rd); Assert.AreEqual("y", a); }