public void DeleteConfirmedValidAthlete() { //Act RedirectToRouteResult actual = (RedirectToRouteResult)controller.DeleteConfirmed(1); //Assert Assert.AreEqual("Index", actual.RouteValues["action"]); }
public void DeleteConfirmedWithoutIdLoadsError() { // act ViewResult result = (ViewResult)controller.DeleteConfirmed(null); // assert Assert.AreEqual("Error", result.ViewName); }