public void Submit_ModelStateIsInvalid_ReturnsRegisterView() { controller.ModelState.AddModelError("key", "error"); var result = controller.Submit(new BusinessTripModel()) as ViewResult; Assert.IsNotNull(result); Assert.AreEqual("Submit", result.ViewName); }