Exemplo n.º 1
0
        public void Ensure_MockMailSender_Logs_Email()
        {
            var         testString = "Email logged: [email protected] with the subject \"Hello\"";
            IMailSender sender     = new MockMailSender();
            var         mailString = sender.SendMail("*****@*****.**", "Hello");

            Assert.AreEqual(testString, mailString);
        }