public void Returns_ViewResult_With_Description_Matching_Class_Description() { var controller = new HomeController(); var result = controller.About() as ViewResult; Assert.AreEqual(HomeController.AboutFeedpaperDescription, result.ViewBag.Description); }
public void Index() { var controller = new HomeController(); var result = controller.Index() as ViewResult; Assert.IsNotNull(result.ViewBag.Message); }
public void Contact() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Contact() as ViewResult; // Assert Assert.IsNotNull(result); }
public void Returns_Non_Null_ViewResult() { var controller = new HomeController(); Assert.IsNotNull(controller.About() as ViewResult); }