public void Test3_semicolon_separated_addr_spec()
        {
            string test     = "[email protected]; [email protected]";
            string expected = "[email protected], [email protected]";

            Assert.AreEqual(expected, MailboxAddressListToString(TSmtpSender.ConvertAddressList(test)));
        }
        public void Test8_semicolon_separated_name_addr_backslash_quoted_containing_semicolon()
        {
            string test = "Meepo\\;Ratbagger <*****@*****.**>; Mr.\\;Oinky <*****@*****.**>";
            string expc = "\"Meepo;Ratbagger\" <*****@*****.**>, \"Mr.;Oinky\" <*****@*****.**>";

            Assert.AreEqual(expc, MailboxAddressListToString(TSmtpSender.ConvertAddressList(test)));
        }
        public void Test7_semicolon_separated_name_addr_containing_quoted_quotes()
        {
            string test = "\"test7Meepo; \\\"Meep;\\\" Ratbagger\" <*****@*****.**>; \"Mr. \\\"Oink;\\\" Oinky\" <*****@*****.**>";
            string expc = "\"test7Meepo; \\\"Meep;\\\" Ratbagger\" <*****@*****.**>, \"Mr. \\\"Oink;\\\" Oinky\" <*****@*****.**>";

            Assert.AreEqual(expc, MailboxAddressListToString(TSmtpSender.ConvertAddressList(test)));
        }
 public void Test5_semicolon_separated_name_addr_quoted()
 {
     Assert.AreEqual("\"Meepo Ratbagger\" <*****@*****.**>, \"Mr. Oinky\" <*****@*****.**>",
                     TSmtpSender.ConvertAddressList("\"Meepo Ratbagger\" <*****@*****.**>; \"Mr. Oinky\" <*****@*****.**>"));
 }
 public void Test3_semicolon_separated_addr_spec()
 {
     Assert.AreEqual("[email protected], [email protected]", TSmtpSender.ConvertAddressList("[email protected]; [email protected]"));
 }
 public void Test1_Single_addr_spec()
 {
     Assert.AreEqual("*****@*****.**", TSmtpSender.ConvertAddressList("*****@*****.**"));
 }
 public void Test8_semicolon_separated_name_addr_backslash_quoted_containing_semicolon()
 {
     Assert.AreEqual("Meepo\\;Ratbagger <*****@*****.**>, Mr.\\;Oinky <*****@*****.**>",
                     TSmtpSender.ConvertAddressList("Meepo\\;Ratbagger <*****@*****.**>; Mr.\\;Oinky <*****@*****.**>"));
 }
 public void Test7_semicolon_separated_name_addr_containing_quoted_quotes()
 {
     Assert.AreEqual("\"Meepo; \\\"Meep;\\\" Ratbagger\" <*****@*****.**>, \"Mr. \\\"Oink;\\\" Oinky\" <*****@*****.**>",
                     TSmtpSender.ConvertAddressList("\"Meepo; \\\"Meep;\\\" Ratbagger\" <*****@*****.**>; \"Mr. \\\"Oink;\\\" Oinky\" <*****@*****.**>"));
 }
        public void Test2_comma_separated_addr_spec()
        {
            string test = "[email protected], [email protected]";

            Assert.AreEqual(test, MailboxAddressListToString(TSmtpSender.ConvertAddressList(test)));
        }
        public void Test1_Single_addr_spec()
        {
            string test = "*****@*****.**";

            Assert.AreEqual(test, MailboxAddressListToString(TSmtpSender.ConvertAddressList(test)));
        }
        public void Test4_comma_separated_name_addr_quoted()
        {
            string test = "\"Meepo Ratbagger\" <*****@*****.**>, \"Mr.Oinky\" <*****@*****.**>";

            Assert.AreEqual(test, MailboxAddressListToString(TSmtpSender.ConvertAddressList(test)));
        }