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

ReadDomainLiteral_WithInvalidCharacter_ShouldThrow() private method

        public void ReadDomainLiteral_WithInvalidCharacter_ShouldThrow()
        {
            int index = InvalidDomainLiteral.Length - 1;
            Assert.Throws<FormatException>(() => { DomainLiteralReader.ReadReverse(InvalidDomainLiteral, index); });
        }
MailAddressParserTest