public void CanGet_QueryDictionary() { Url u = new Url("/hello.aspx?something=someotherthing"); var q = u.GetQueries(); Assert.AreEqual(1, q.Count); Assert.AreEqual("someotherthing", q["something"]); }
public void CanGet_EmptyQueryDictionary() { Url u = new Url("/hello.aspx"); var q = u.GetQueries(); Assert.AreEqual(0, q.Count); }