System.Net.Mail.Tests.MailAddressParserTest.ReadDotAtom_WithDotAtBeginning_ShouldThrow C# (CSharp) Méthode

ReadDotAtom_WithDotAtBeginning_ShouldThrow() private méthode

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