System.Net.Mail.Tests.MailAddressParserTest.ParseAddress_WithInvalidLocalPart_ShouldThrow C# (CSharp) Method

ParseAddress_WithInvalidLocalPart_ShouldThrow() private method

private ParseAddress_WithInvalidLocalPart_ShouldThrow ( ) : void
return void
        public void ParseAddress_WithInvalidLocalPart_ShouldThrow()
        {
            Assert.Throws<FormatException>(() => { MailAddressParser.ParseAddress("test[test]@test.com"); });
        }
MailAddressParserTest