public void Should_verify_route_values_but_ignore_ones_not_given()
 {
     var result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Foo", action = "Index", id = 1 }));
     result.AssertRouteValues(new { action = "Index", id = 1 });
 }
 public void Should_verify_all_route_values()
 {
     var result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Foo", action = "Index", id = 1 }));
     result.AssertRouteValues(new { controller = "Foo", action = "Index", id = 1 });
 }
 public void Should_verify_null_route_values_correctly()
 {
     var result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = (object)null }));
     result.AssertRouteValues(new { controller = (string)null });
 }
 public void Should_throw_if_route_values_do_not_match()
 {
     var result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Foo" }));
     result.AssertRouteValues(new { controller = "Bar" });
 }