Esempio n. 1
0
        public void WordArrayToSpaceEscapedString_OneWord_CreatesString()
        {
            string[] array  = new string[] { "hello" };
            string   result = UriUtils.WordArrayToSpaceEscapedString(array);

            Assert.AreEqual("hello", result);
        }
Esempio n. 2
0
        public void WordArrayToSpaceEscapedString_MultipleWords_CreatesString()
        {
            string[] array  = new string[] { "hello", "world" };
            string   result = UriUtils.WordArrayToSpaceEscapedString(array);

            Assert.AreEqual("hello%20world", result);
        }
Esempio n. 3
0
        public void WordArrayToSpaceEscapedString_EmptyArray_EmptyString()
        {
            string[] array  = new string[0];
            string   result = UriUtils.WordArrayToSpaceEscapedString(array);

            Assert.AreEqual("", result);
        }