public void Should_Publish_And_Get() { Assert.Equal(Sequence.InitialValue, _ringBuffer.GetCursor()); var expectedEvent = new StubEvent(2701); _ringBuffer.PublishEvent(StubEvent.Translator, expectedEvent.Value, expectedEvent.TestString); var sequence = _barrier.WaitFor(0L); Assert.Equal(0L, sequence); var @event = _ringBuffer.Get(sequence); Assert.Equal(expectedEvent, @event); Assert.Equal(0L, _barrier.GetCursor()); }