public void CreateLoadsView() { //act ViewResult result = (ViewResult)controller.Create(); //assert Assert.AreEqual("Create", result.ViewName); }
public void CreateViewLoads() { //Act - cast return type as ViewResult ViewResult actual = (ViewResult)controller.Create(); //Assert Assert.AreEqual("Create", actual.ViewName); }
public void Create() { // Arrange AthletesController controller = new AthletesController(); // Act ViewResult result = controller.Create() as ViewResult; // Assert Assert.IsNotNull(result); }