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

ReadQuotedString_WithInvalidCharacters_ShouldThrow() private method

        public void ReadQuotedString_WithInvalidCharacters_ShouldThrow()
        {
            int index = InvalidQuotedString.Length - 1;
            Assert.Throws<FormatException>(() => { QuotedStringFormatReader.ReadReverseQuoted(InvalidQuotedString, index, false); });
        }
MailAddressParserTest