Ejemplo n.º 1
0
        public void TestRemainingCapacity()
        {
            _ringBuffer = Client.GetRingbuffer <string>("ClientRingbufferTestWithTTL" + TestSupport.RandomString());

            _ringBuffer.Add("foo");

            Assert.AreEqual(Capacity - 1, _ringBuffer.RemainingCapacity());
        }
Ejemplo n.º 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());
        }