public void RenderSimpleEmail() { var email = _templateEngine.RenderEmail("SimpleEmail.cshtml"); Assert.IsNotNull(email); Assert.IsFalse(email.IsBodyHtml); Assert.IsTrue(email.Body.Contains("Plain text")); Assert.IsTrue(email.AlternateViews[0].ContentStream.AsString().Contains("HTML")); Assert.IsTrue(email.Subject == "Simple Email"); Assert.IsTrue(email.From.Address == "*****@*****.**"); }