public void EmailTraceListenerNodeTest()
        {
            string name = "some name";
            string subjectSuffix = "subject suffix";
            string subjectPrefix = "subject prefix";
            string toAddress = "some to address";
            string fromAddress = "some from address";
            string smtpServer = "some server";
            int smtpPort = 123;

            EmailTraceListenerNode emailTraceListenerNode = new EmailTraceListenerNode();
            emailTraceListenerNode.Name = name;
            emailTraceListenerNode.SubjectLineStarter = subjectPrefix;
            emailTraceListenerNode.SubjectLineEnder = subjectSuffix;
            emailTraceListenerNode.ToAddress = toAddress;
            emailTraceListenerNode.FromAddress = fromAddress;
            emailTraceListenerNode.SmtpServer = smtpServer;
            emailTraceListenerNode.SmtpPort = smtpPort;

            ApplicationNode.AddNode(emailTraceListenerNode);

            EmailTraceListenerData nodeData = (EmailTraceListenerData)emailTraceListenerNode.TraceListenerData;


            Assert.AreEqual(name, nodeData.Name);
            Assert.AreEqual(subjectSuffix, nodeData.SubjectLineEnder);
            Assert.AreEqual(subjectPrefix, nodeData.SubjectLineStarter);
            Assert.AreEqual(toAddress, nodeData.ToAddress);
            Assert.AreEqual(fromAddress, nodeData.FromAddress);
            Assert.AreEqual(smtpPort, nodeData.SmtpPort);
            Assert.AreEqual(smtpServer, nodeData.SmtpServer);
        }
        public void EmailTraceListenerNodeDefaults()
        {
            EmailTraceListenerNode emailListener = new EmailTraceListenerNode();

            Assert.AreEqual("Email TraceListener", emailListener.Name);
            Assert.AreEqual(string.Empty, emailListener.SubjectLineEnder);
            Assert.AreEqual(string.Empty, emailListener.SubjectLineStarter);
            Assert.AreEqual(DefaultValues.EmailListenerToAddress, emailListener.ToAddress);
            Assert.AreEqual(DefaultValues.EmailListenerFromAddress, emailListener.FromAddress);
            Assert.AreEqual(DefaultValues.EmailListenerSmtpPort, emailListener.SmtpPort);
            Assert.AreEqual(DefaultValues.EmailListenerSmtpAddress, emailListener.SmtpServer);
        }