示例#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);
        }
示例#2
0
        public void CreateEntryTest()
        {
            var cache = new DummyCache();

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