public void TestRemainingCapacity() { _ringBuffer = Client.GetRingbuffer <string>("ClientRingbufferTestWithTTL" + TestSupport.RandomString()); _ringBuffer.Add("foo"); Assert.AreEqual(Capacity - 1, _ringBuffer.RemainingCapacity()); }
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()); }