Example #1
0
        public void ExecuteGetShouldReturnEmptyArrayOnException()
        {
            //Arrange
            var adapter = new RedisAdapter("", "", "");

            //Act
            var result = adapter.Get(new RedisKey[] { "test_key", "test_key2", "test_key3" });

            //Assert
            Assert.AreEqual(0, result.Count());
        }
Example #2
0
        public void ExecuteGetShouldReturnEmptyOnException()
        {
            //Arrange
            var adapter = new RedisAdapter("", "", "");

            //Act
            var result = adapter.Get("test_key");

            //Assert
            Assert.AreEqual(String.Empty, result);
        }