Esempio n. 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);
        }
Esempio n. 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);
        }