System.Net.Mail.Tests.MailAddressParsingTest.TestLargeListOfValidEmails_WithInvalidEmails_ShouldThrow C# (CSharp) Method

TestLargeListOfValidEmails_WithInvalidEmails_ShouldThrow() private method

        public void TestLargeListOfValidEmails_WithInvalidEmails_ShouldThrow()
        {
            string[] data = GetInvalidEmailTestData().Select(d => (string)d.First()).ToArray();
            string emails = string.Join(",", data);

            Assert.Throws<FormatException>(() => { MailAddressParser.ParseMultipleAddresses(emails); });
        }