title: How to unit-test an action, when return type is ActionResult?
body: <p>I have written unit test for following action.</p>
  
  <pre><code>[HttpPost]
  public ActionResult/*ViewResult*/ Create(MyViewModel vm)
  {
      if (ModelState.IsValid)
      {
          //Do something...
          return RedirectToAction("Index");
      }
  
      return View(vm);
  }
  </code></pre>
  
  <p>Test method can access <code>Model</code> properties, only when return type is <code>ViewResult</code>. In above code, I have used <code>RedirectToAction</code> so return type of this action can not be <code>ViewResult</code>. </p>
  
  <p>In such scenario how do you unit-test an action?</p>