public void AddQueryStringWithKeyAndValue(string uri, string expectedUri) { var result = QueryHelpers.AddQueryString(uri, "hello", "world"); Assert.Equal(expectedUri, result); }
public void AddQueryStringWithNullValueThrows() { Assert.Throws <ArgumentNullException>("value", () => QueryHelpers.AddQueryString("http://contoso.com/", "hello", null)); }