public void TestNullKeyGet() { ICache cache = new RtMemoryCache(); cache.Put("nunit", "value"); object item = cache.Get(null); Assert.IsNull(item); }
public void TestNullKeyRemove() { ICache cache = new RtMemoryCache(); Assert.Throws <ArgumentNullException>(() => cache.Remove(null)); }
public void TestNullValuePut() { ICache cache = new RtMemoryCache(); Assert.Throws <ArgumentNullException>(() => cache.Put("nunit", null)); }
public void TestNoPropertiesConstructor() { ICache cache = new RtMemoryCache("nunit"); Assert.IsNotNull(cache); }
public void TestEmptyProperties() { ICache cache = new RtMemoryCache("nunit", new Dictionary <string, string>()); Assert.IsNotNull(cache); }
public void TestNullKeyRemove() { ICache cache = new RtMemoryCache(); Assert.Throws<ArgumentNullException>(() => cache.Remove(null)); }
public void TestDefaultConstructor() { ICache cache = new RtMemoryCache(); Assert.IsNotNull(cache); }
public void TestNullKeyGet() { ICache cache = new RtMemoryCache(); cache.Put("nunit", "value"); object item = cache.Get(null); Assert.IsNull(item); }
public void TestNullValuePut() { ICache cache = new RtMemoryCache(); Assert.Throws<ArgumentNullException>(() => cache.Put("nunit", null)); }
public void TestEmptyProperties() { ICache cache = new RtMemoryCache("nunit", new Dictionary<string, string>()); Assert.IsNotNull(cache); }
public void TestNoPropertiesConstructor() { ICache cache = new RtMemoryCache("nunit"); Assert.IsNotNull(cache); }
public void TestDefaultConstructor() { ICache cache = new RtMemoryCache(); Assert.IsNotNull(cache); }