示例#1
0
 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"]);
 }
示例#2
0
 public void CanGet_EmptyQueryDictionary()
 {
     Url u = new Url("/hello.aspx");
     var q = u.GetQueries();
     Assert.AreEqual(0, q.Count);
 }