Пример #1
0
 public void GetViewTest_Index()
 {
     var controller = new Person.Controllers.PersonsController();
     var result = controller.Index();
     Assert.IsInstanceOf<ViewResult>(result);
     Assert.IsInstanceOf<System.Collections.Generic.List<PersonViewModel>>(((ViewResult)result).Model);
 }
Пример #2
0
        public void GetViewTest_Index()
        {
            var controller = new Person.Controllers.PersonsController();
            var result     = controller.Index();

            Assert.IsInstanceOf <ViewResult>(result);
            Assert.IsInstanceOf <System.Collections.Generic.List <PersonViewModel> >(((ViewResult)result).Model);
        }