public void IndexShouldReturnIndexPage()
 {
     var controller = new HomeController();
     var result = controller.Index();
     result.AssertViewRendered()
           .ForView("");
 }
 public void IndexPageShouldDisplayTheCorrectMessage()
 {
     var controller = new HomeController();
     var result = (ViewResult)controller.Index();
     Assert.That(result.ViewData["Message"], Is.EqualTo("Welcome to ASP.NET MVC!"));
 }