public void CheckEmail_WithNoEnableSsl_ShouldSetSslToFalse() { const string host = "mail.host.com"; const int port = 445; var dobermanConfiguration = new DobermanConfiguration(); dobermanConfiguration.CheckEmail(host, port); Assert.That(dobermanConfiguration.SmtpSettings[0].Ssl, Is.False); }
public void CheckEmail_ValidHostAndPort_ShouldAddToSmtpSettings() { const string host = "mail.host.com"; const int port = 445; var dobermanConfiguration = new DobermanConfiguration(); dobermanConfiguration.CheckEmail(host, port); Assert.That(dobermanConfiguration.SmtpSettings[0].Host, Is.EqualTo(host)); Assert.That(dobermanConfiguration.SmtpSettings[0].Port, Is.EqualTo(port)); }