public void DbSize_Removing_Entry() { _memory = new InMemoryCache.Caching.InMemoryCache(); Enumerable.Range(1, 10).ToList().ForEach(i => _memory.Set($"myKey{i}", i)); _memory.Del("myKey1"); Assert.AreEqual(9, _memory.DbSize()); }
public void SetUp() { _memory = new InMemoryCache.Caching.InMemoryCache(); }