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

            //Act
            var setCount = adapter.SAdd("test_key_set_multiple", new RedisValue[] { "test_value", "test_value2" });

            //Assert
            Assert.AreEqual(0, setCount);
        }
Beispiel #2
0
        public void ExecuteSAddShouldReturnFalseOnException()
        {
            //Arrange
            var adapter = new RedisAdapter("", "", "");

            //Act
            var setCount = adapter.SAdd("test_key_set", "test_value_1");

            //Assert
            Assert.IsFalse(setCount);
        }