public void TestNullKeyGet() { ICache cache = new SysCache(); cache.Put("nunit", "value"); object item = cache.Get(null); Assert.IsNull(item); }
private string loadFromCache() { Object objCache = SysCache.Get(getKey()); if (objCache == null) { return(null); } return(objCache.ToString()); }
public void TestNullKeyGet() { ICache cache = new SysCache(); cache.Put("nunit", "value"); Thread.Sleep(100); object item = cache.Get(null); Assert.ShouldNotBeNull(item); }