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); }
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")); }