Exemple #1
0
        public async Task TestHasKeySyncFromFileCache()
        {
            await _bufferedDiskCache.Put(_cacheKey, _encodedImage);

            Assert.IsTrue(_bufferedDiskCache.ContainsSync(_cacheKey));
            Assert.IsFalse(_stagingArea.ContainsKey(_cacheKey));
        }
Exemple #2
0
 public void TestContains()
 {
     Assert.IsTrue(_stagingArea.ContainsKey(_cacheKey));
     Assert.IsFalse(_stagingArea.ContainsKey(new SimpleCacheKey("http://this.is.not.uri")));
 }