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