Пример #1
0
        public void When_there_is_a_cookie_Then_GetValue_returns_value()
        {
            var existingCookie = new HttpCookie("cookie");

            existingCookie.Value = "value";
            _httpRequest.Object.Cookies.Add(existingCookie);

            string value = _cookieContainer.GetValue("cookie");

            Assert.That(value, Is.EqualTo("value"), "cookie value");
        }