public ILRUCache <SimpleLRUCacheItem, int> MakeRainbowCache_lock(int Capacity)
        {
            var c = new LRUCache_lock <SimpleLRUCacheItem, int, string>(Capacity);

            SimpleLRUCacheTests.AddRainbowItems(c);
            return(c);
        }
        public void TestMaxSize_Cleanup()
        {
            var c = MakeRainbowCache_lock(4);

            SimpleLRUCacheTests.DumpCache(c, "After Creation");
            Assert.AreEqual(4, c.Count, 0, "Cache size is not 4");
            Console.WriteLine("Test Complete.");
        }
        public void TestMaxSize_Find()
        {
            var c = MakeRainbowCache_lock(4);

            SimpleLRUCacheTests.DumpCache(c, "After Creation");
            try
            {
                var val = c.Get(0);
                //Assert.AreEqual(4, c.Count, 0, "Cache size is not 4");
            } catch
            {
                // Ignore
            }
            finally {
                SimpleLRUCacheTests.DumpCache(c, "\nAfter Find");
                Console.WriteLine("Test Complete.");
            }
        }