public void Contact() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Contact() as ViewResult; // Assert Assert.IsNotNull(result); }
public void ReturnTheContactView() { var homeController = new HomeController(); ViewResult viewResult = (ViewResult)homeController.Contact(); Assert.AreEqual("Contact", viewResult.ViewName); }