public void Max_Age() { using (var set = new CappedSet <int>()) { set.TimeLimitSec = 10; for (var i = 0; i < 1000; i++) { set.Put(i); } Aver.AreEqual(1000, set.Count); for (var i = 0; i < 40; i++) { Console.WriteLine(" count: {0}".Args(set.Count)); Thread.Sleep(1000); } Aver.AreEqual(0, set.Count); Aver.IsFalse(set.Any()); } }