public void SmtpDate_ValidateTimeZoneShortHandValue_WithInvalidShortHand_ShouldReturnFalse() { var smtpDt = new SmtpDateTime(DateTime.Now); Assert.Throws <FormatException>(() => smtpDt.ValidateTimeZoneShortHandValue("7M-GTE")); }
public void SmtpDate_ValidateTimeZoneShortHandValue_WithValidShortHand_ShouldReturnTrue() { var smtpDt = new SmtpDateTime(DateTime.Now); smtpDt.ValidateTimeZoneShortHandValue("GMT"); }
public void SmtpDate_ValidateTimeZoneShortHandValue_WithInvalidShortHand_ShouldReturnFalse() { var smtpDt = new SmtpDateTime(DateTime.Now); Assert.Throws<FormatException>(() => smtpDt.ValidateTimeZoneShortHandValue("7M-GTE")); }
public void SmtpDate_ValidateTimeZoneShortHandValue_WithInvalidShortHand_ShouldReturnFalse() { Assert.Throws <FormatException>(() => SmtpDateTime.ValidateTimeZoneShortHandValue("7M-GTE")); }
public void SmtpDate_ValidateTimeZoneShortHandValue_WithValidShortHand_ShouldReturnTrue() { SmtpDateTime.ValidateTimeZoneShortHandValue("GMT"); }