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