Let's say I have defined a route:
routes.Add(new Route("Users/{id}", new MvcRouteHandler())
{
Defaults = new RouteValueDictionary(new { controller ="UserInfo", action = "UserInformation",
id = ""}),
});
So, how am I going to create a unit test to ensure that when Users/123 is presented in the URL the action method UserInformation is definitely called, with 123 as the parameter?
The reason I asked this is because I could have typed the wrong name when I specify the RouteValueDictionary, I could have mistyped UserInformationss in the pace of UserInformation. Is there anyway to prevent this?