public void Test_Cached() { var fakecachedictionary = new FakeCacheDictionary2(); var i = 1; Assert.Equal(i.ToString(), fakecachedictionary.Get(i)); Assert.Equal(i.ToString(), fakecachedictionary.Get(i)); Assert.Equal(1, fakecachedictionary.NumberOfFactories); Assert.True(fakecachedictionary.IsCached(i)); }
public void Test_SetInternalFactory() { var fakecachedictionary = new FakeCacheDictionary2(); var i = 1; Assert.Equal(i.ToString(), fakecachedictionary.Get(i)); Assert.True(fakecachedictionary.IsCached(i)); }