Example #1
0
 public void ShouldThrowExceptionWhenKeyIsNullOrEmpty(string key)
 {
     Assert.Throws <ArgumentNullException>(() => _cache.Contains(key));
     Assert.Throws <ArgumentNullException>(() => _cache.Get(key));
     Assert.Throws <ArgumentNullException>(() => _cache.Set(key, "value"));
     Assert.Throws <ArgumentNullException>(() => _cache.Remove(key));
 }