System.Net.Mail.Tests.MailAddressParserTest.ParseAddress_WithCommentsAndUnquotedLocalAndUnquotedDisplayName_ShouldReadCorrectly C# (CSharp) Méthode

ParseAddress_WithCommentsAndUnquotedLocalAndUnquotedDisplayName_ShouldReadCorrectly() private méthode

        public void ParseAddress_WithCommentsAndUnquotedLocalAndUnquotedDisplayName_ShouldReadCorrectly()
        {
            MailAddress result;
            result = MailAddressParser.ParseAddress("(comment)this.test.this(comment)<(comment)this.test.this(comment)@(comment)[  test this ](comment)>");

            Assert.Equal("(comment)this.test.this(comment)", result.DisplayName);
            Assert.Equal("this.test.this", result.User);
            Assert.Equal("[  test this ]", result.Host);
        }
MailAddressParserTest