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