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