public void can_get_home_happy_path() { var homeController = new HomeController(); var indexPage = homeController.Index() as ViewResult; var title = (string) indexPage.ViewBag.Title; title.Should().Be("TextMatch Home Page"); }
public void Index() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result); }