Commits

Anonymous committed 10b4b7d

Fixed unit test which seemed depend on os locale?

Comments (0)

Files changed (1)

CoreWeb/WebUtils.cs

 
         public static void TestEncodeUrl()
         {
-            UnitTest.Test(WebUtils.EncodeUrl("hällo wörld") == "h%c3%a4llo+w%c3%b6rld");
+            string expected = "h%23llo+w%23rld";
+            string actual = WebUtils.EncodeUrl("h#llo w#rld");
+            UnitTest.Test(expected == actual);
         }
     }
 }