예제 #1
0
        public void RedirectionToAction()
        {
            ExampleController controller = new ExampleController();

            RedirectToActionResult result = controller.RedirToAct();

            Assert.Equal("Index", result.ActionName);
            Assert.False(result.Permanent);
            Assert.Equal("HomeController", result.ControllerName);
        }