Пример #1
0
        public void TestNullKeyGet()
        {
            ICache cache = new SysCache();

            cache.Put("nunit", "value");
            object item = cache.Get(null);

            Assert.IsNull(item);
        }
Пример #2
0
        private string loadFromCache()
        {
            Object objCache = SysCache.Get(getKey());

            if (objCache == null)
            {
                return(null);
            }
            return(objCache.ToString());
        }
Пример #3
0
        public void TestNullKeyGet()
        {
            ICache cache = new SysCache();

            cache.Put("nunit", "value");
            Thread.Sleep(100);
            object item = cache.Get(null);

            Assert.ShouldNotBeNull(item);
        }
		public void TestNullKeyGet()
		{
			ICache cache = new SysCache();
			cache.Put("nunit", "value");
			object item = cache.Get(null);
			Assert.IsNull(item);
		}