public void CanResolve_AddResultToCacheTrue_ReturnsTrue() { TestCachedNamedOffsetProvider provider = new TestCachedNamedOffsetProvider(); provider.AddResultToCache = true; provider.GetAddress("cached"); provider.CalculateAddressWasCalled = false; Assert.IsTrue(provider.CanResolve("cached")); }
public void CanResolve_NotCached_ReturnsFalse() { TestCachedNamedOffsetProvider provider = new TestCachedNamedOffsetProvider(); Assert.IsFalse(provider.CanResolve("not cached")); }