public void TestEmptyProperties()
 {
     ICache cache = new PrevalenceCache("nunit", null);
     Assert.IsNotNull(cache);
 }
 public void TestNullValuePut()
 {
     ICache cache = new PrevalenceCache();
     Assert.Throws<ArgumentNullException>(() => cache.Put("nunit", null));
 }
 public void TestDefaultConstructor()
 {
     ICache cache = new PrevalenceCache();
     Assert.IsNotNull(cache);
 }
 public void TestNoPropertiesConstructor()
 {
     ICache cache = new PrevalenceCache("nunit");
     Assert.IsNotNull(cache);
 }
 public void TestNullKeyRemove()
 {
     ICache cache = new PrevalenceCache();
     Assert.Throws<ArgumentNullException>(() => cache.Remove(null));
 }
        public void TestNullValuePut()
        {
            ICache cache = new PrevalenceCache();

            Assert.Throws <ArgumentNullException>(() => cache.Put("nunit", null));
        }
        public void TestNullKeyRemove()
        {
            ICache cache = new PrevalenceCache();

            Assert.Throws <ArgumentNullException>(() => cache.Remove(null));
        }
        public void TestNoPropertiesConstructor()
        {
            ICache cache = new PrevalenceCache("nunit");

            Assert.IsNotNull(cache);
        }
        public void TestEmptyProperties()
        {
            ICache cache = new PrevalenceCache("nunit", null);

            Assert.IsNotNull(cache);
        }
        public void TestDefaultConstructor()
        {
            ICache cache = new PrevalenceCache();

            Assert.IsNotNull(cache);
        }