public void ExpiringDictionary_FindAndRefresh_Returns_First_Matching_Item_After_Refreshing_It() { using (var map = new ExpiringDictionary <int, string>(10, 10)) { map.Add(8, "1"); _Clock.AddMilliseconds(10); Assert.AreEqual("1", map.FindAndRefresh(r => r == "1")); HeartbeatTick(); Assert.AreEqual(1, map.Count); } }