public void TestUI_FriendlyUrl_EncodesCorrectly() { string originalUrl = "with space"; string expectedUrl = "with-space"; string encodedUrl = FriendlyUrl.FriendlyUrlEncode(originalUrl); Assert.AreEqual(expectedUrl, encodedUrl, "Unexpected encoding"); }
public void TestUI_FriendlyUrl_Encode_Null_Value_Correctly() { string encodedUrl = FriendlyUrl.FriendlyUrlEncode(null); Assert.IsNull(encodedUrl, "Unexpected encoding"); }