public void TestFooterSender() { FooterSender sender = new FooterSender("Hello"); string expected = "Goodbye\n\nHello"; StringAssert.AreEqualIgnoringCase(sender.AppendMessage("Goodbye"), expected); }
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); }