public void AsyncCache_Lazy_Created() { var cache = new FutureCache <int, double>(n => Math.Pow(n, 2)); for (int i = 0; i < TestCount; i++) { Assert.AreEqual(Math.Pow(i, 2), cache.GetValue(i)); } }
public void AsyncCache_Lazy_Created() { var cache = new FutureCache<int, double>(n => Math.Pow(n, 2)); for(int i = 0; i < TestCount; i++) Assert.AreEqual(Math.Pow(i, 2), cache.GetValue(i)); }