示例#1
0
        public void TestIfMessagDoesntHaveRoutingTraceOption_LoggerTraceMethodIsNotCalled()
        {
            var messageTracer = new MessageTracer(logger.Object);
            messageTracer.CallbackNotFound(message);

            logger.Verify(m => m.Trace(It.IsAny<object>()), Times.Never);
        }
示例#2
0
        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);
        }