public void TestNullKeyGet()
 {
     ICache cache = new MembaseCache();
     cache.Put("nunit", "value");
     Thread.Sleep(1000);
     object item = cache.Get(null);
     Assert.IsNull(item);
 }
 public void TestNullKeyRemove()
 {
     ICache cache = new MembaseCache();
     Assert.DoesNotThrow(() => cache.Remove(null));
 }
 public void TestNullKeyPut()
 {
     ICache cache = new MembaseCache();
     Assert.DoesNotThrow(() => cache.Put(null, null));
 }
 public void TestNoPropertiesConstructor()
 {
     ICache cache = new MembaseCache("nunit");
     Assert.IsNotNull(cache);
 }
 public void TestEmptyProperties()
 {
     ICache cache = new MembaseCache("nunit", new Dictionary<string, string>());
     Assert.IsNotNull(cache);
 }
 public void TestDefaultConstructor()
 {
     ICache cache = new MembaseCache();
     Assert.IsNotNull(cache);
 }
 public void TestNullValuePut()
 {
     ICache cache = new MembaseCache();
     Assert.DoesNotThrow(() => cache.Put("nunit",null));
 }