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

SmtpDateTime_WithInvalidTimeZone_ShouldParseDateCorrectly() private method

        public void SmtpDateTime_WithInvalidTimeZone_ShouldParseDateCorrectly()
        {
            var smtpDt = new SmtpDateTime(DateTime.Now);
            string timeZoneOffset;
            DateTime result = smtpDt.ParseValue(InvalidDateStringWithInvalidTimeZone, out timeZoneOffset);

            Assert.Equal("7M-Gte", timeZoneOffset);
            Assert.Equal(new DateTime(2009, 5, 17, 15, 34, 07), result);
        }