public void RemoveShouldRemoveTheItemFromTheCache() { Assert.Equal(0, _cache.Count); _cache.Add(_testObject1.Value.ToString(), new CachedObject { ObjectSize = 1, Value = _testObject1 }); Assert.Equal(1, _cache.Count); Assert.Equal(1, _cache.OrderedCacheKeysCount); Assert.Equal(1, _cache.EstimatedMemorySize); Assert.NotNull(_cache.OrderedCacheKeysGet(_testObject1.Value.ToString())); _cache.Remove(_testObject1.Value.ToString()); Assert.Equal(0, _cache.Count); Assert.Equal(0, _cache.OrderedCacheKeysCount); Assert.Equal(0, _cache.EstimatedMemorySize); Assert.Null(_cache.OrderedCacheKeysGet(_testObject1.Value.ToString())); }