public void OriginalQueryStringValuesArePreservedWhenAddingEmptyQuery() { var query = new QueryStringParameterCollection(); var result = UriUtility.AddQuery("path?a=1", query); Assert.AreEqual("path?a=1", result); }
public void QueryStringValuesAreAddedToUri() { var query = new QueryStringParameterCollection() { { "a", "1" } }; var result = UriUtility.AddQuery("path", query); Assert.AreEqual("path?a=1", result); }