예제 #1
0
        public void TestPersistence()
        {
            var cache = new HashCache();

            cache.Put("test_key", "test_value");
            Assert.AreEqual(cache.Get("test_key"), "test_value");
        }
예제 #2
0
        public void TestSetInvalidKey()
        {
            var cache = new HashCache();

            cache.Put(null, "value");
        }