Ejemplo n.º 1
0
 public void GetViewTest_Delete()
 {
     var controller = new Person.Controllers.PersonsController();
     var result = controller.Delete(1);///
     Assert.IsInstanceOf<ViewResult>(result);
     Assert.IsInstanceOf<PersonViewModel>(((ViewResult)result).Model);
 }
Ejemplo n.º 2
0
        public void GetViewTest_Delete()
        {
            var controller = new Person.Controllers.PersonsController();
            var result     = controller.Delete(1);///

            Assert.IsInstanceOf <ViewResult>(result);
            Assert.IsInstanceOf <PersonViewModel>(((ViewResult)result).Model);
        }