Esempio n. 1
0
        public void TestContainsValue()
        {
            LRUCache <String, String> underTest = new LRUCache <String, String>(666);

            underTest.Add("key1", "value1");
            underTest.Add("key2", "value2");
            underTest.Add("key3", "value3");
            Assert.That(underTest.Count == 3);
            Assert.That(underTest.ContainsValue("value1"));
            Assert.That(underTest.ContainsValue("value2"));
            Assert.That(underTest.ContainsValue("value3"));
            Assert.IsFalse(underTest.ContainsValue("value4"));
        }