Esempio n. 1
0
        public void CheckValidIdRedirect()

        {
            // act
            RedirectToRouteResult result = controller.DeleteConfirmed(404) as RedirectToRouteResult;
            var resultlist = result.RouteValues.ToArray();

            // assert
            Assert.AreEqual("Index", resultlist[0].Value);
        }