private void AssertMessageWasReceived(TransportMessage unackedTransportMessage, int messageIndex) { var expected = new TransportMessageSent(new MessageReplayed(_replayId, unackedTransportMessage).ToTransportMessage(_selfPeer, wasPersisted: false), _targetPeer); var comparer = new MessageComparer(); comparer.CheckExpectations(new[] { _transport.Messages[messageIndex] }, new[] { expected }, false); }
public void Expect(params TransportMessageSent[] expectedMessages) { var comparer = new MessageComparer(); comparer.CheckExpectations(Messages, expectedMessages, false); }
public void Expect(params TransportMessageSent[] expectedMessages) { var comparer = new MessageComparer(); comparer.CheckExpectations(Messages, expectedMessages, false); }
public void Expect(IEnumerable <IMessage> expectedMessages) { _messageComparer.CheckExpectations(Messages, expectedMessages, false); }