[Test] public void send_TestEmail() { var emailCount = SendEmails.Sent_EmailMessages.size(); Assert.IsFalse(sendEmails.send_TestEmail()); var lastEmail = SendEmails.Sent_EmailMessages.last(); Assert.AreEqual(lastEmail.Subject, TMConsts.EMAIL_TEST_SUBJECT); Assert.AreEqual(lastEmail.Message, TMConsts.EMAIL_TEST_MESSAGE + TMConsts.EMAIL_DEFAULT_FOOTER); Assert.AreEqual(lastEmail.SentStatus, SentStatus.NoConfig); Assert.AreEqual(emailCount + 1, SendEmails.Sent_EmailMessages.size()); }
public void send_TestEmail() { Assert.IsTrue(sendEmails.send_TestEmail()); }