public void SetUp() { var secretData = tmXmlDatabase.UserData.SecretData; sendEmails = new SendEmails(); Assert.IsNotNull(sendEmails); Assert.IsNull(sendEmails.Smtp_Password , "In UnitTests SendEmails SMTP password should not be set"); Assert.IsTrue(sendEmails.serverNotConfigured() , "In UnitTests serverNotConfigured should be in offline mode"); }
public void SetUp() { SendEmails.Disable_EmailEngine = false; // SendEmails.Send_Emails_As_Sync = true; sendEmails = new SendEmails(); Assert.IsNotNull(sendEmails); Assert.IsEmpty (sendEmails.Smtp_Password , "In UnitTests SendEmails SMTP password should not be set"); Assert.IsTrue (sendEmails.serverNotConfigured() , "In UnitTests serverNotConfigured should be in offline mode"); }