Ejemplo n.º 1
0
 public void AddTimed_TwoTimes(int itemCount)
 {
     for (var i = 0; i < itemCount; ++i)
     {
         Cache.AddTimed(StringItems[i], StringItems[i], Cache.Clock.GetCurrentInstant().Plus(Duration.FromMinutes(10)));
         Assert.True(Cache.Contains(StringItems[i]));
     }
     for (var i = 0; i < itemCount; ++i)
     {
         Cache.AddTimed(StringItems[i], StringItems[i], Cache.Clock.GetCurrentInstant().Plus(Duration.FromMinutes(10)));
         Assert.True(Cache.Contains(StringItems[i]));
     }
 }