Example #1
0
        public void Should_sort_url_parameters_below_segments()
        {
            AddRoute(AddActionSource(), "fark/{param}");
            AddRoute(AddActionSource(), "fark/segment");
            AddRoute(AddActionSource(), "fark");

            _initializer.Initialize();

            _routes.Select(x => x.RouteTemplate).ShouldOnlyContain("fark", "fark/segment", "fark/{param}");
        }