예제 #1
0
        public void Return_one_cookie_When_there_is_only_one_cookie_for_the_date()
        {
            var cookieValue = "123";
            var cookieDate  = DateTimeOffset.Now;

            _cookieJar.AddCookie(cookieDate, cookieValue);

            var mostActiveCookies = _cookieJar.FindMostActiveFor(cookieDate);

            Assert.Single(mostActiveCookies);
            Assert.Equal(cookieValue, mostActiveCookies[0]);
        }
 void Click()
 {
     if (isServer)
     {
         jar.AddCookie();
     }
 }
 public void CmdClickCookie()
 {
     jar.AddCookie();
 }