public void ThenAnEmailIsSentToMyFriend() { Thread.Sleep(2000); var page = new SendEmailPage(); Assert.IsTrue(page.Result == "Email enviado com sucesso!"); var sendTime = (DateTime)ScenarioContext.Current["sendTime"]; var email = new Email(); Assert.IsTrue(email.WasSent(sendTime)); }
public void ThenNoEmailIsSentToMyFriend() { var sendTime = (DateTime)ScenarioContext.Current["sendTime"]; var email = new Email(); Assert.IsFalse(email.WasSent(sendTime)); }