string.AddUrlQuery(params string[])

Here are the examples of the csharp api class string.AddUrlQuery(params string[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: osharp
Source File: StringExtensionsTests.cs
View license
        public void AddUrlQueryTest()
            const string url = "http://localhost:801";
            string excepted = url + "?id=1";
            Assert.Equal(url.AddUrlQuery("id=1"), excepted);
            excepted = url + "?name=abc";
            Assert.Equal(url.AddUrlQuery("name=abc"), excepted);
            excepted = url + "?id=1&name=abc";
            Assert.Equal(url.AddUrlQuery("id=1", "name=abc"), excepted);