public void TestPut() { const string key = "key1"; const string value = "value"; ICache cache = provider.BuildCache("nunit", props); Assert.IsNotNull(cache, "no cache returned"); Assert.IsNull(cache.Get(key), "cache returned an item we didn't add !?!"); cache.Put(key, value); object item = cache.Get(key); Assert.IsNotNull(item); Assert.AreEqual(value, item, "didn't return the item we added"); }
public void TestBuildCacheFromConfig() { ICache cache = provider.BuildCache("foo", null); Assert.IsNotNull(cache, "pre-configured cache not found"); }