public void TestIfMessagDoesntHaveRoutingTraceOption_LoggerTraceMethodIsNotCalled() { var messageTracer = new MessageTracer(logger.Object); messageTracer.CallbackNotFound(message); logger.Verify(m => m.Trace(It.IsAny<object>()), Times.Never); }
public void TestIfMessageHasRoutingTraceOption_LoggerTraceMethodIsCalled() { message.TraceOptions = MessageTraceOptions.Routing; var messageTracer = new MessageTracer(logger.Object); messageTracer.CallbackNotFound(message); logger.Verify(m => m.Trace(It.IsAny<object>()), Times.Once); }