Пример #1
0
 private bool CookieCollectionEqual(CookieCollection a, CookieCollection b)
 {
     return(a.Count == b.Count &&
            a.GetValueOf("cookie1") == b.GetValueOf("cookie1") &&
            a.GetValueOf("cookie2") == b.GetValueOf("cookie2") &&
            a.GetValueOf("cookie3") == b.GetValueOf("cookie3"));
 }
Пример #2
0
 public void GetValueOfKey_from_cookieCollection()
 {
     Assert.AreEqual("value1", _CookieCollection.GetValueOf("cookie1"));
     Assert.AreEqual("value2", _CookieCollection.GetValueOf("cookie2"));
     Assert.AreEqual("value3", _CookieCollection.GetValueOf("cookie3"));
 }