Example #1
0
        public void Decrement_key_must_decrease()
        {
            string key = "decrementKey";

            provider.Delete(key);

            var timeOut = new TimeSpan(0, 0, 10);

            long value = provider.Increment(key, timeOut, 4);

            value.Should().Be(4);

            value = provider.Decrement(key, 2);

            value.Should().Be(2);
        }