예제 #1
0
        public void ContainsKeyReturnsCorrectValue(string key, bool expected)
        {
            var cache = new CacheWithFail <string, Data>();

            cache.Add("Foo", new Data {
                String = "Foo", Int = 1
            });

            cache.ContainsKey(key).Should().Be(expected);
        }
예제 #2
0
        public void ContainsKeyReturnsCorrectValue(string key, bool expected)
        {
            var cache = new CacheWithFail<string, Data>();
            cache.Add("Foo", new Data { String = "Foo", Int = 1 });

            cache.ContainsKey(key).Should().Be(expected);
        }