Exemplo n.º 1
0
        public void TestUI_FriendlyUrl_EncodesCorrectly()
        {
            string originalUrl = "with space";
            string expectedUrl = "with-space";
            string encodedUrl  = FriendlyUrl.FriendlyUrlEncode(originalUrl);

            Assert.AreEqual(expectedUrl, encodedUrl, "Unexpected encoding");
        }
Exemplo n.º 2
0
        public void TestUI_FriendlyUrl_Encode_Null_Value_Correctly()
        {
            string encodedUrl = FriendlyUrl.FriendlyUrlEncode(null);

            Assert.IsNull(encodedUrl, "Unexpected encoding");
        }