Exemplo n.º 1
0
        public void ContainsKeyTest()
        {
            GenerateFakeHttpContext();

            var cache = new HttpContextCache();

            Assert.IsTrue(cache.ContainsKey(TestKey));
        }
Exemplo n.º 2
0
        public void ContainsKeyNonExistingTest()
        {
            var tmpKey = TestKey + "123";

            GenerateFakeHttpContext();

            var cache = new HttpContextCache();

            Assert.IsFalse(cache.ContainsKey(tmpKey));
        }