Ejemplo n.º 1
0
        public void Home_Controller_Returns_View_If_Validation_Fails()
        {
            // Setup
            _controller.ModelState.AddModelError("test", "test");

            // Act
            var result = _controller.CreateNewPerson(new Models.NewPersonModel());

            // Assert
            Assert.IsInstanceOf <PartialViewResult>(result);
        }