public void TestDefaults() { ExposingAbstractCache localCache = (ExposingAbstractCache)mocks.PartialMock(typeof(ExposingAbstractCache)); Assert.AreEqual(TimeSpan.Zero, localCache.TimeToLive); Assert.AreEqual(false, localCache.EnforceTimeToLive); }
public void TestDefaults() { ExposingAbstractCache localCache = A.Fake <ExposingAbstractCache>(); Assert.AreEqual(TimeSpan.Zero, localCache.TimeToLive); Assert.AreEqual(false, localCache.EnforceTimeToLive); }
public void SetUp() { cache = A.Fake <ExposingAbstractCache>(options => options.CallsBaseMethods()); expectedPerItemTTL = new TimeSpan(0, 0, 10); expectedPerCacheTTL = new TimeSpan(0, 0, 20); cache.TimeToLive = expectedPerCacheTTL; }
public void SetUp() { mocks = new MockRepository(); cache = (ExposingAbstractCache)mocks.PartialMock(typeof(ExposingAbstractCache)); expectedPerItemTTL = new TimeSpan(0, 0, 10); expectedPerCacheTTL = new TimeSpan(0, 0, 20); cache.TimeToLive = expectedPerCacheTTL; }
public void SetUp() { mocks = new MockRepository(); cache = (ExposingAbstractCache)mocks.PartialMock(typeof(ExposingAbstractCache)); expectedPerItemTTL = new TimeSpan(0, 0, 10); expectedPerCacheTTL = new TimeSpan(0, 0, 20); cache.TimeToLive = expectedPerCacheTTL; }