コード例 #1
0
        public void DeleteConfirmedValidAthlete()
        {
            //Act
            RedirectToRouteResult actual = (RedirectToRouteResult)controller.DeleteConfirmed(1);

            //Assert
            Assert.AreEqual("Index", actual.RouteValues["action"]);
        }
コード例 #2
0
        public void DeleteConfirmedWithoutIdLoadsError()
        {
            // act
            ViewResult result = (ViewResult)controller.DeleteConfirmed(null);

            // assert
            Assert.AreEqual("Error", result.ViewName);
        }