Exemplo n.º 1
0
        public void TryGetValueTest()
        {
            var cache = new DummyCache();

            cache.CreateEntry("key", "value", null);
            var tryGetResult = cache.TryGetValue("key", out object value);

            // TryGetValue is always false
            Assert.IsFalse(tryGetResult);
            Assert.IsNull(value);
        }
Exemplo n.º 2
0
        public void CreateEntryTest()
        {
            var cache = new DummyCache();

            cache.CreateEntry("key", "value", null);
        }