コード例 #1
0
        public void all_url_encoded_spaces_replaces_with_spaces()
        {
            const string urlEncodedTitle = "a title with lots of spaces";
            var          result          = PathwayTitleUriParser.Parse(Uri.EscapeUriString(urlEncodedTitle));

            Assert.AreEqual(urlEncodedTitle, result);
        }
コード例 #2
0
        public void escaped_dashes_are_not_replaced_with_a_space()
        {
            const string urlEncodedTitle = "a-title-with-an-es--caped-dash";
            var          result          = PathwayTitleUriParser.Parse(Uri.EscapeUriString(urlEncodedTitle));

            Assert.AreEqual("a title with an es-caped dash", result);
        }
コード例 #3
0
        public void all_dashes_in_title_replaced_with_spaces()
        {
            const string title  = "a-title-with-lots-of-dashes-in-it";
            var          result = PathwayTitleUriParser.Parse(title);

            Assert.AreEqual("a title with lots of dashes in it", result);
        }