示例#1
0
        public void RedirectByRouteTest()
        {
            ExampleController target = new ExampleController();
            var result = target.RedirectByRoute();

            Assert.IsFalse(result.Permanent);
            Assert.AreEqual("Example", result.RouteValues["controller"]);
            Assert.AreEqual("Index", result.RouteValues["action"]);
            Assert.AreEqual("MyID", result.RouteValues["id"]);
        }