Ejemplo n.º 1
0
        public void TestHeaderSender()
        {
            HeaderSender sender = new HeaderSender("Hello");

            string expected = "Hello\n\nGoodbye";

            StringAssert.AreEqualIgnoringCase(sender.AppendMessage("Goodbye"), expected);
        }
Ejemplo n.º 2
0
        public void TestHeaderFooterSender()
        {
            EmailSender sender = new FooterSender("Goodbye", new HeaderSender("Hello"));
            EmailSender sender2 = new HeaderSender("Hello", new FooterSender("Goodbye"));

            string expected = "Hello\n\nSir\n\nGoodbye";

            StringAssert.AreEqualIgnoringCase(sender.AppendMessage("Sir"), expected);
            StringAssert.AreEqualIgnoringCase(sender2.AppendMessage("Sir"), expected);
        }