Example #1
0
            public void TrimsWhitespaceAndDoesNotDuplicateLeadingForwardSlash()
            {
                var scanner = new RouteScanner();

                scanner.BasePathSanitizer(" /path ").ShouldBe("/path");
            }
Example #2
0
            public void TrimsWhitespaceAndTrailingForwardSlash()
            {
                var scanner = new RouteScanner();

                scanner.BasePathSanitizer(" path/ ").ShouldBe("/path");
            }
Example #3
0
            public void AppendsLeadingForwardSlash()
            {
                var scanner = new RouteScanner();

                scanner.BasePathSanitizer("path").ShouldBe("/path");
            }
Example #4
0
            public void TrimsLeadingAndTrailingWhitespace()
            {
                var scanner = new RouteScanner();

                scanner.BasePathSanitizer(" path ").ShouldBe("/path");
            }
Example #5
0
            public void ReturnsEmptyWhenBasepathIsEmpty()
            {
                var scanner = new RouteScanner();

                scanner.BasePathSanitizer(string.Empty).ShouldBe(string.Empty);
            }