public void TestNullKeyGet() { ICache cache = new RtMemoryCache(); cache.Put("nunit", "value"); object item = cache.Get(null); Assert.IsNull(item); }
public void TestNullValuePut() { ICache cache = new RtMemoryCache(); Assert.Throws <ArgumentNullException>(() => cache.Put("nunit", null)); }
public void TestNullKeyPut() { ICache cache = new RtMemoryCache(); Assert.Throws <ArgumentNullException>(() => cache.Put(null, null)); }
public void TestNullValuePut() { ICache cache = new RtMemoryCache(); Assert.Throws<ArgumentNullException>(() => cache.Put("nunit", null)); }
public void TestNullKeyPut() { ICache cache = new RtMemoryCache(); Assert.Throws<ArgumentNullException>(() => cache.Put(null, null)); }