public bool QueueMessage(IMessageSinkMessage message)
            {
                var result = message as TestResultMessage;

                if (result != null && String.IsNullOrEmpty(result.Output))
                {
                    result.SetOutput(TestTracer.GetTraceString());
                }

                lock (_messages)
                {
                    var testFailed = result as TestFailed;
                    if (testFailed != null && testFailed.ExceptionTypes.LastOrDefault() == typeof(KuduXunitTestSkippedException).FullName)
                    {
                        TestSkipped = true;
                        message     = new TestSkipped(result.Test, testFailed.Messages.LastOrDefault() ?? "unknown");
                    }

                    _messages.Add(message);
                }

                // No way to ask the inner bus if they want to cancel without sending them the message, so
                // we just go ahead and continue always.
                return(true);
            }
        public bool QueueMessage(IMessageSinkMessage message)
        {
            var result = message as TestResultMessage;

            if (result != null && String.IsNullOrEmpty(result.Output))
            {
                result.SetOutput(TestTracer.GetTraceString());
            }

            return(_innerBus.QueueMessage(message.SanitizeXml()));
        }
            public bool QueueMessage(IMessageSinkMessage message)
            {
                var result = message as TestResultMessage;

                if (result != null && String.IsNullOrEmpty(result.Output))
                {
                    result.SetOutput(TestTracer.GetTraceString());
                }

                lock (_messages)
                {
                    _messages.Add(message);
                }

                // No way to ask the inner bus if they want to cancel without sending them the message, so
                // we just go ahead and continue always.
                return(true);
            }
        public bool QueueMessage(IMessageSinkMessage message)
        {
            var result = message as TestResultMessage;

            if (result != null && String.IsNullOrEmpty(result.Output))
            {
                result.SetOutput(TestTracer.GetTraceString());
            }

            var testFailed = result as TestFailed;

            if (testFailed != null && testFailed.ExceptionTypes.LastOrDefault() == typeof(KuduXunitTestSkippedException).FullName)
            {
                TestSkipped = true;
                message     = new TestSkipped(result.Test, testFailed.Messages.LastOrDefault() ?? "unknown");
            }

            return(_innerBus.QueueMessage(message.SanitizeXml()));
        }