title: Unit test RedirectToRouteResult
body: <p>I have the following code in my controller:</p>
  
  <pre><code>public class MyController : BaseController
  {
      public ActionResult MyMethod()
      {
          ...
          return RedirectToAction("Index", "Dashboard");
      }
  }
  </code></pre>
  
  <p>I'd like to unit test this redirect (RedirectToRouteResult).
  I've done it this way:</p>
  
  <pre><code>Assert.IsTrue(result.RouteValues.ContainsKey("action"));
  Assert.IsTrue(result.RouteValues.ContainsKey("controller"));
  Assert.AreEqual("Index", result.RouteValues["action"].ToString());
  Assert.AreEqual("Dashboard", result.RouteValues["controller"].ToString());
  </code></pre>
  
  <p>So I need four asserts to test my RedirectToRouteResult.
  Is there any more efficient way?</p>