public void MsmqTraceListenerNodeDefaults()
        {
            MsmqTraceListenerNode msmqListener = new MsmqTraceListenerNode();

            Assert.AreEqual("Msmq TraceListener", msmqListener.Name);
            Assert.AreEqual(DefaultValues.MsmqQueuePath, msmqListener.QueuePath);
            Assert.AreEqual(MessageQueueTransactionType.None, msmqListener.TransactionType);
            Assert.AreEqual(false, msmqListener.UseAuthentication);
            Assert.AreEqual(false, msmqListener.UseDeadLetterQueue);
            Assert.AreEqual(false, msmqListener.UseEncryption);
            Assert.AreEqual(false, msmqListener.Recoverable);
            Assert.AreEqual(Message.InfiniteTimeout, msmqListener.TimeToBeReceived);
            Assert.AreEqual(Message.InfiniteTimeout, msmqListener.TimeToReachQueue);
            Assert.AreEqual(MessagePriority.Normal, msmqListener.MessagePriority);
        }
        public void MsmqTraceListenerNodeTest()
        {
            string name = "some name";
            string messageQueuePath = "some mq path";
            bool useDeadLetterQueue = true;
            bool useAuthentication = true;
            bool useEncryption = true;
            bool recoverable = false;
            TimeSpan timeToBeReceived = new TimeSpan(123);
            TimeSpan timeToReachQueue = new TimeSpan(123);
            MessagePriority messagePriority = MessagePriority.VeryHigh;
            MessageQueueTransactionType transactionType = MessageQueueTransactionType.Automatic;

            MsmqTraceListenerNode msmqTraceListenerNode = new MsmqTraceListenerNode();
            msmqTraceListenerNode.Name = name;
            msmqTraceListenerNode.QueuePath = messageQueuePath;
            msmqTraceListenerNode.MessagePriority = messagePriority;
            msmqTraceListenerNode.TransactionType = transactionType;
            msmqTraceListenerNode.UseEncryption = useEncryption;
            msmqTraceListenerNode.UseAuthentication = useAuthentication;
            msmqTraceListenerNode.UseDeadLetterQueue = useDeadLetterQueue;
            msmqTraceListenerNode.TimeToReachQueue = timeToReachQueue;
            msmqTraceListenerNode.TimeToBeReceived = timeToBeReceived;
            msmqTraceListenerNode.Recoverable = recoverable;

            ApplicationNode.AddNode(msmqTraceListenerNode);

            MsmqTraceListenerData nodeData = (MsmqTraceListenerData)msmqTraceListenerNode.TraceListenerData;

            Assert.AreEqual(name, nodeData.Name);
            Assert.AreEqual(messageQueuePath, nodeData.QueuePath);
            Assert.AreEqual(transactionType, nodeData.TransactionType);
            Assert.AreEqual(messagePriority, nodeData.MessagePriority);
            Assert.AreEqual(useDeadLetterQueue, nodeData.UseDeadLetterQueue);
            Assert.AreEqual(useAuthentication, nodeData.UseAuthentication);
            Assert.AreEqual(useEncryption, nodeData.UseEncryption);
            Assert.AreEqual(timeToBeReceived, nodeData.TimeToBeReceived);
            Assert.AreEqual(timeToReachQueue, nodeData.TimeToReachQueue);
            Assert.AreEqual(recoverable, nodeData.Recoverable);
            
        }