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

ReadQuotedString_WithUnicodeAndUnicodeIsInvalid_ShouldThrow() private method

        public void ReadQuotedString_WithUnicodeAndUnicodeIsInvalid_ShouldThrow()
        {
            int index = UnicodeQuotedString.Length - 1;
            Assert.Throws<FormatException>(() => { QuotedStringFormatReader.ReadReverseUnQuoted(UnicodeQuotedString, index, false, false); });
        }
MailAddressParserTest