public void InvalidKeys() { CleanupInvalidKeysSet <TestKey> set = new CleanupInvalidKeysSet <TestKey>(this); int count = 1000000; for (int a = count; a-- > 0;) { set.Add(new TestKey("key" + a)); if (a % (count / 100) == 0) { GC.Collect(); } } Assert.AssertNotEquals(set.Count, count); }
public LoggerHistory() { logHistory = new CleanupInvalidKeysSet <LoggerHistoryKey>(this, 0.5f); }