示例#1
0
        public void Concat2Test()
        {
            var uriString = "/api/v2?k=aaaaa&";
            var query     = new UriQueryValues();

            query.Add("name", "aafeefe");
            query.Add("query", "1212121");
            var uriUri = query.Concat(uriString);
        }
示例#2
0
        public void ConcatTest()
        {
            var uriString = "http://www.host.com/api/v2?";
            var query     = new UriQueryValues();

            query.Add("name", "aafeefe");
            query.Add("query", "1212121");
            var uriUri = query.Concat(uriString);

            Assert.Equal(uriUri, new Uri("http://www.host.com/api/v2?name=aafeefe&query=1212121"));
        }