コード例 #1
0
 public void SetupContext()
 {
     _controller = new HomeController();
     _result = _controller.Index();
 }
コード例 #2
0
 public void IndexShouldReturnView()
 {
     var controller = new HomeController();
     var result = controller.Index();
     Assert.IsInstanceOfType(result, typeof(ViewResult));
 }