title: Is it possible to unit test some AddModelError results in ASP.NET MVC?
body: <p>I've got a controller method which returns a <code>RedirectToActionResult</code> (success!) or a <code>ViewResult</code> (failed with error messages).</p>
  
  <p>If the <em>business logic fails</em>, i add the error messages to the <code>AddModelError</code> property.</p>
  
  <p>Is there any way i can test this in my MS Unit tests? I also have Moq, if that helps too. (i don't believe Moq is required for this scenario though) .. I'm not using anything from the <code>Request</code> object.</p>