public void TestDefaultConstructor() { ICache cache = new NhRedisClient(); Assert.IsNotNull(cache); }
public void TestNullValuePut() { ICache cache = new NhRedisClient(); Assert.Throws<ArgumentNullException>(() => cache.Put("nunit", null )); }
public void TestNoPropertiesConstructor() { ICache cache = new NhRedisClient("nunit"); Assert.IsNotNull(cache); }
public void TestNullKeyRemove() { ICache cache = new NhRedisClient(); Assert.Throws<ArgumentNullException>(() => cache.Remove(null)); }
public void TestEmptyProperties() { ICache cache = new NhRedisClient("nunit", new Dictionary<string, string>()); Assert.IsNotNull(cache); }