示例#1
0
        public void SmtpDate_ValidateTimeZoneShortHandValue_WithInvalidShortHand_ShouldReturnFalse()
        {
            var smtpDt = new SmtpDateTime(DateTime.Now);

            Assert.Throws <FormatException>(() => smtpDt.ValidateTimeZoneShortHandValue("7M-GTE"));
        }
示例#2
0
        public void SmtpDate_ValidateTimeZoneShortHandValue_WithValidShortHand_ShouldReturnTrue()
        {
            var smtpDt = new SmtpDateTime(DateTime.Now);

            smtpDt.ValidateTimeZoneShortHandValue("GMT");
        }
示例#3
0
 public void SmtpDate_ValidateTimeZoneShortHandValue_WithInvalidShortHand_ShouldReturnFalse()
 {
     var smtpDt = new SmtpDateTime(DateTime.Now);
     Assert.Throws<FormatException>(() => smtpDt.ValidateTimeZoneShortHandValue("7M-GTE"));
 }
示例#4
0
 public void SmtpDate_ValidateTimeZoneShortHandValue_WithValidShortHand_ShouldReturnTrue()
 {
     var smtpDt = new SmtpDateTime(DateTime.Now);
     smtpDt.ValidateTimeZoneShortHandValue("GMT");
 }
示例#5
0
 public void SmtpDate_ValidateTimeZoneShortHandValue_WithInvalidShortHand_ShouldReturnFalse()
 {
     Assert.Throws <FormatException>(() => SmtpDateTime.ValidateTimeZoneShortHandValue("7M-GTE"));
 }
示例#6
0
 public void SmtpDate_ValidateTimeZoneShortHandValue_WithValidShortHand_ShouldReturnTrue()
 {
     SmtpDateTime.ValidateTimeZoneShortHandValue("GMT");
 }