NServiceBus/NServiceBus — pull request #178 by tapmantwo (2012-01-17 13:56:44+00:00)
Title: Modifications to NServiceBus.Testing.Helper.cs (discovered when writing tests for a Saga)

Hi,
I was experiencing a couple of issues when testing a saga.
1) If I had something like;
.ExpectSend( m => m.SagaId == sagaId && m.Meta == someMeta)
.ExpectSend( m => m.SagaId == sagaId && m.Description == description )
The Expect.Call expectation was failing because it couldn't distinguish between the two different message types. To fix this, I altered the call to use the Arg.Is.Any instead of passing in null.
2) When using the ExpectReplyToOrginator() method, it was throwing an exception because the return type hadn't been specified. As the method is a void return, I added that to the setup.

Hope this makes sense - it's my first dabble with Git/NServiceBus and RhinoMock, so I'm well aware I might have got some bits wrong. My tests are at least passing now :)
Cheers
Richard