public void Ctor_01() { Assert.DoesNotThrow(() => { cache = new LruCache <int, int>(0); cache.Insert(0, 0); Assert.IsFalse(cache.HasKey(0)); }); }
public void Get_01() { cache.Insert(-1, -1); for (int i = 0; i < capacity; i++) { cache.Insert(i, i); } Assert.IsFalse(cache.HasKey(-1)); }