public void WhenPublish_ThenAllReceiversAreIncluded() { ArraySegment <IRingBuffer> buffers; Registry.GetBuffers(typeof(A), out buffers); var expectedCount = buffers.Count; A any; var e = new Envelope(); _writer.Write(ref e, ref any, null).ReturnsForAnyArgs(true); var a = new A(); _bus.Publish(ref a); _writer.ReceivedWithAnyArgs(expectedCount).Write(ref e, ref a, null); }