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

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

            Assert.IsNull(item);
        }
Пример #2
0
        public void TestNullKeyPut()
        {
            ICache cache = new CouchbaseCacheClient();

            Assert.Throws <ArgumentNullException>(() => cache.Put(null, null));
        }
Пример #3
0
        public void TestEmptyProperties()
        {
            ICache cache = new CouchbaseCacheClient("nunit", new Dictionary <string, string>());

            Assert.IsNotNull(cache);
        }
Пример #4
0
        public void TestNoPropertiesConstructor()
        {
            ICache cache = new CouchbaseCacheClient("nunit");

            Assert.IsNotNull(cache);
        }
Пример #5
0
        public void TestDefaultConstructor()
        {
            ICache cache = new CouchbaseCacheClient();

            Assert.IsNotNull(cache);
        }