public void Index() { // Arrange var controller = new HomeController(); // Act var result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result); }
public void About() { // Arrange var controller = new HomeController(); // Act var result = controller.About() as ViewResult; // Assert Assert.AreEqual("Your application description page.", result.ViewBag.Message); }