コード例 #1
0
        public void TestEncodeUriWithAlphanumericCharactersAndWhitespace()
        {
            // Example from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI

            Assert.AreEqual("ABC%20abc%20123", JsGlobal.EncodeUri("ABC abc 123"));
        }
コード例 #2
0
        public void TestEncodeUriWithUnreservedCharacters()
        {
            // Example from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI

            Assert.AreEqual("-_.!~*'()", JsGlobal.EncodeUri("-_.!~*'()"));
        }