public void Create_ShowsCorrectView() { var result = Controller.Create(); Assert.IsType <ViewResult>(result); var viewResult = result as ViewResult; Assert.Null(viewResult.ViewName); }
public void SportSavedAndRedirected() { //act var result = (RedirectToRouteResult)controller.Create(sports[0]); //assert Assert.AreEqual("Index", result.RouteValues["action"]); }