Example #1
0
 public void Index_Action_Returns_Index_View()
 {
     ActionResult result = new HomeController().Index();
     result.AssertViewRendered().ForViewEndingWith("Index.cshtml");
 }
Example #2
0
 public void About_Action_Returns_About_View()
 {
     ActionResult result = new HomeController().About();
     result.AssertViewRendered().ForViewEndingWith("About.cshtml");
 }