Esempio n. 1
0
 public void ShouldReturnViewResult()
 {
     //able to check by dont need to run
     var c = new HomeController();
     var result = c.Index();
     Assert.IsType<ViewResult>(result);  //check that result is ViewResult
 }
 public void ShouldReturnViewResult()
 {
     var c = new HomeController();
     var result = c.Index();
     Assert.IsType<ViewResult>(result);
 }