public void RedirectToActionWithParams()
 {
     var controller = new SmartTest2Controller();
     PrepareController(controller);
     controller.RedirectToAction(c => c.ActionWithParams(1, "one"));
     Assert.AreEqual("/SmartTest2/ActionWithParams.rails?something=1&somethingElse=one&", Response.RedirectedTo);
 }
 public void RedirectWithParamsAndDataBinding()
 {
     var controller = new SmartTest2Controller();
     PrepareController(controller);
     controller.Redirect<SmartTest2Controller>(c => c.DataBinding(new Properties {SomeValue = 22}));
     Assert.AreEqual("/SmartTest2/DataBinding.rails?prefi.SomeValue=22&", Response.RedirectedTo);
 }