System.Net.Mime.Tests.SmtpDateTimeTest.SmtpDate_TryParseTimeZoneString_WithInvalidShortHand_ShouldThrowException C# (CSharp) Method

SmtpDate_TryParseTimeZoneString_WithInvalidShortHand_ShouldThrowException() private method

        public void SmtpDate_TryParseTimeZoneString_WithInvalidShortHand_ShouldThrowException()
        {
            var smtpDt = new SmtpDateTime(DateTime.Now);
            TimeSpan span;
            Assert.Throws<FormatException>(() => smtpDt.TryParseTimeZoneString("7mGTE", out span));
        }
    }