public async Task TestHasKeySyncFromFileCache() { await _bufferedDiskCache.Put(_cacheKey, _encodedImage); Assert.IsTrue(_bufferedDiskCache.ContainsSync(_cacheKey)); Assert.IsFalse(_stagingArea.ContainsKey(_cacheKey)); }
public void TestContains() { Assert.IsTrue(_stagingArea.ContainsKey(_cacheKey)); Assert.IsFalse(_stagingArea.ContainsKey(new SimpleCacheKey("http://this.is.not.uri"))); }