public void ShouldGenerateOutboundUrlFromRouteContainingSpaces()
        {
            FriendlyUrlRoute route = new FriendlyUrlRoute("{controller}/{action}", new MvcRouteHandler());

            RouteValueDictionary values = new RouteValueDictionary(new { controller = "The Controller", action = "The Action" });

            MvcAssert.IsOutboundRouteValid("the-controller/the-action", values, route);
        }
        public void ShouldGenerateOutboundUrlFromRouteWithArgument()
        {
            FriendlyUrlRoute route = new FriendlyUrlRoute("artists/{genre}", new RouteValueDictionary(new { controller = "Artists", action = "List" }), new MvcRouteHandler());

            RouteValueDictionary values = new RouteValueDictionary(new { controller = "Artists", action = "List", genre = "Pop" });

            MvcAssert.IsOutboundRouteValid("artists/pop", values, route);
        }
        public void ShouldGenerateInboundRouteFromStandardRoute()
        {
            FriendlyUrlRoute route = new FriendlyUrlRoute("{controller}/{action}", new MvcRouteHandler());

            RouteValueDictionary values = new RouteValueDictionary(new { controller = "controller", action = "action" });

            MvcAssert.IsInboundRouteValid(values, "~/controller/action", route);
        }