public void FooActionReturnsAboutView()
 {
     var homeController = new HomeController();
     var result = homeController.Foo() as ViewResult;
     Assert.AreEqual("About", result.ViewName);
 }
 public void ContactFormSaysThanks()
 {
     var homeController = new HomeController();
     var result = homeController.Contact("I love your bank.") as ViewResult;
     Assert.IsNotNull(result.ViewBag.TheMessage);
 }