예제 #1
0
        public void TestNullKeyGet()
        {
            ICache cache = new RtMemoryCache();

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

            Assert.IsNull(item);
        }
예제 #2
0
        public void TestNullValuePut()
        {
            ICache cache = new RtMemoryCache();

            Assert.Throws <ArgumentNullException>(() => cache.Put("nunit", null));
        }
예제 #3
0
        public void TestNullKeyPut()
        {
            ICache cache = new RtMemoryCache();

            Assert.Throws <ArgumentNullException>(() => cache.Put(null, null));
        }
		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 TestNullKeyPut()
		{
			ICache cache = new RtMemoryCache();
			Assert.Throws<ArgumentNullException>(() => cache.Put(null, null));
		}