public void should_serialize_the_envelope() { theSerializer.AssertWasCalled(x => x.Serialize(null, theNode), x => { x.Constraints(Is.Matching <Envelope>(o => { o.CorrelationId.ShouldBe(theEnvelope.CorrelationId); o.ShouldNotBeTheSameAs(theEnvelope); return(true); }), Is.Same(theNode)); }); }