Пример #1
0
 public void TestDefaultConstructor()
 {
     ICache cache = new NhRedisClient();
     Assert.IsNotNull(cache);
 }
Пример #2
0
 public void TestNullValuePut()
 {
     ICache cache = new NhRedisClient();
     Assert.Throws<ArgumentNullException>(() => cache.Put("nunit", null ));
 }
Пример #3
0
 public void TestNoPropertiesConstructor()
 {
     ICache cache = new NhRedisClient("nunit");
     Assert.IsNotNull(cache);
 }
Пример #4
0
 public void TestNullKeyRemove()
 {
     ICache cache = new NhRedisClient();
     Assert.Throws<ArgumentNullException>(() => cache.Remove(null));
 }
Пример #5
0
 public void TestEmptyProperties()
 {
     ICache cache = new NhRedisClient("nunit", new Dictionary<string, string>());
     Assert.IsNotNull(cache);
 }