public void Clear_ContainedSome_EverythingIsCleared()
        {
            _cache.Cache(new object());
            _cache.Cache(new object());

            _cache.Clear();

            Assert.That(_cache.Count, Is.EqualTo(0));
        }
示例#2
0
 public void Clear()
 {
     _cache.Clear();
 }
示例#3
0
 public void Destroy()
 {
     componentRegistry.UnregisterAll();
     componentCache.Clear();
 }