public void ParseTest() { var name = "Weixing"; var address = "*****@*****.**"; var str = $"{name}<{address}>"; var a = MailAddress.Parse(address); Assert.IsNull(a.Name); Assert.AreEqual(address, a.Address); var b = MailAddress.Parse(str); Assert.AreEqual(name, b.Name); Assert.AreEqual(address, b.Address); }