Exemplo n.º 1
0
        public void HasValueShouldReturnTrueWhenValueExists()
        {
            const string testKey = "MyTestKey";
            const string fullKey = "System.String:" + testKey;

            _httpContextWrapper.ResponseSetCookie(fullKey, "");

            Assert.True(_valueProvider.HasValue <string>(testKey));
        }
        public void HasValueShouldReturnTrueWhenValueExists()
        {
            const string testKey = "MyTestKey";
            const string fullKey = "System.String:" + testKey;

            HttpContext.Current.Request.Cookies.Add(new HttpCookie(fullKey));

            Assert.IsTrue(_valueProvider.HasValue <string>(testKey));
        }