public void Remove_Query_Parameter_When_Two_Query_Parameters()
        {
            Uri uri = new Uri("http://address.url/path/to/page.asp?query=value&query2=value2");
            Assert.AreEqual("http://address.url/path/to/page.asp?query2=value2", uri.RemoveQueryParameter("query").ToString());
            Assert.AreEqual("http://address.url/path/to/page.asp?query=value", uri.RemoveQueryParameter("query2").ToString());

            Assert.AreEqual("http://address.url/path/to/page.asp",
                uri.RemoveQueryParameter("query").RemoveQueryParameter("query2").ToString());
        }
 public void Remove_Query_Parameter_With_Empty_Key()
 {
     Uri uri = new Uri("http://address.url/path/to/page.asp");
     Assert.AreEqual(uri, uri.RemoveQueryParameter(null));
     Assert.AreEqual(uri, uri.RemoveQueryParameter(""));
 }
 public void Remove_Query_Parameter_When_No_Query_Parameter_Exists()
 {
     Uri uri = new Uri("http://address.url/path/to/page.asp");
     Assert.AreEqual(uri, uri.RemoveQueryParameter("badkey"));
 }
 public void Remove_Parameter_That_Does_Not_Exist()
 {
     Uri uri = new Uri("http://address.url/path/to/page.asp?query=value&query2=value2");
     Assert.AreEqual(uri,uri.RemoveQueryParameter("badkey"));
 }