コード例 #1
0
ファイル: FriendlyUrlTest.cs プロジェクト: fanrongwd/chrono
        public void TestUI_FriendlyUrl_EncodesCorrectly()
        {
            string originalUrl = "with space";
            string expectedUrl = "with-space";
            string encodedUrl  = FriendlyUrl.FriendlyUrlEncode(originalUrl);

            Assert.AreEqual(expectedUrl, encodedUrl, "Unexpected encoding");
        }
コード例 #2
0
        public void TestUI_FriendlyUrl_Encode_Null_Value_Correctly()
        {
            string encodedUrl = FriendlyUrl.FriendlyUrlEncode(null);

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