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

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

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

            Assert.AreEqual("", result);
        }