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

ReadDotAtom_WithDotAtBeginning_ShouldThrow() private method

private ReadDotAtom_WithDotAtBeginning_ShouldThrow ( ) : void
return void
        public void ReadDotAtom_WithDotAtBeginning_ShouldThrow()
        {
            int index = InvalidDotAtomStartsWithDot.Length - 1;
            Assert.Throws<FormatException>(() => { DotAtomReader.ReadReverse(InvalidDotAtomStartsWithDot, index); });
        }
MailAddressParserTest