public void TestNullKeyRemove() { ICache cache = new MemoryCache(); Executing .This(() => cache.Remove(null)) .Should().Throw<ArgumentNullException>(); }
public void TestNullKeyGet() { ICache cache = new MemoryCache(); cache.Put(Key, "value"); var item = cache.Get(null); Assert.IsNull(item); }
public void TestNullValuePut() { ICache cache = new MemoryCache(); Executing .This(() => cache.Put(RegionName, null)) .Should().Throw<ArgumentNullException>(); }
public void TestEmptyProperties() { ICache cache = new MemoryCache(RegionName, new Dictionary<string, string>()); Assert.IsNotNull(cache); }
public void TestNoPropertiesConstructor() { ICache cache = new MemoryCache(RegionName); Assert.IsNotNull(cache); }
public void TestDefaultConstructor() { ICache cache = new MemoryCache(); Assert.IsNotNull(cache); }