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