예제 #1
0
        public void ListOfCacheKeysContainsAllKeysAfterCallingAdd()
        {
            List <string> keys = new List <string>()
            {
                "one", "two", "three", "four", "five"
            };


            foreach (var key in keys)
            {
                sut.Add(key, key.Reverse());
            }

            var cachedKeys = sut.GetCacheKeys().Keys;

            Assert.IsTrue(keys.Intersect(cachedKeys).Count() == keys.Count);
        }