public void LoadTest()
        {
            var cObject = new CacheObject <object>(this.LoadFunc, new TimeSpan(0, 1, 0));
            var r       = cObject.Get();
            var p       = cObject.Get();

            r.Wait();
            p.Wait();
            Assert.AreEqual(o1, r.Result);
            Assert.AreEqual(o1, r.Result);
        }
        public void ExpireTest()
        {
            var cObject = new CacheObject <object>(this.LoadFunc, new TimeSpan(0, 0, 0, 0, 150));
            var r       = cObject.Get();

            r.Wait();
            Assert.AreEqual(o1, r.Result);
            Thread.Sleep(205);
            r = cObject.Get();
            r.Wait();
            Assert.AreEqual(o1, r.Result);
            Thread.Sleep(105);
            r = cObject.Get();
            Assert.AreEqual(o2, r.Result);
        }