public void Getting_NonExistantQuery_GivesNull() { Url u = new Url("/hello.aspx?something=someotherthing"); var q = u.GetQuery("nothing"); Assert.IsNull(q); }
public void Getting_Query_WhenNoQueries_GivesNull() { Url u = new Url("/hello.aspx"); var q = u.GetQuery("something");; Assert.IsNull(q); }
public void CanGet_Query() { Url u = new Url("/hello.aspx?something=someotherthing"); var q = u.GetQuery("something"); Assert.AreEqual("someotherthing", q); }