示例#1
0
        public void TestRemainingCapacity()
        {
            _ringBuffer = Client.GetRingbuffer <string>("ClientRingbufferTestWithTTL" + TestSupport.RandomString());

            _ringBuffer.Add("foo");

            Assert.AreEqual(Capacity - 1, _ringBuffer.RemainingCapacity());
        }
示例#2
0
        public void TestAddAndReadOne()
        {
            var sequence = _ringBuffer.Add("foo");

            Assert.AreEqual("foo", _ringBuffer.ReadOne(sequence));
        }
        public void TestRemainingCapacity()
        {
            _ringBuffer = Client.GetRingbuffer<string>("ClientRingbufferTestWithTTL" + TestSupport.RandomString());

            _ringBuffer.Add("foo");

            Assert.AreEqual(Capacity - 1, _ringBuffer.RemainingCapacity());
        }