public void Index() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.AreEqual("Welcome to DancingSociety!", result.ViewBag.Message); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.News() as ViewResult; // Assert Assert.IsNotNull(result); }