public void ConstructAddAndRetrieveWithDefaultCtorReturnsValue() { var x = new ConcurrentTLru <int, int>(3, TimeSpan.FromSeconds(1)); x.GetOrAdd(1, k => k).Should().Be(1); }
public ConcurrentTLruTests() { lru = new ConcurrentTLru <int, string>(1, capacity, EqualityComparer <int> .Default, timeToLive); }