public void XmlOutputTest() { var et = new EmailMessage(); string attachmentFile = DocumentSamples.GetSampleCsv(); string textbody = DocumentSamples.GetSampleEmailText(); string htmlbody = DocumentSamples.GetSampleEmailHtml(); et.EmailTo = "*****@*****.**"; et.EmailSubject = "PostAPIClient Refactor Test (ET)"; et.EmailReplyTo = "*****@*****.**"; et.EmailFrom = "*****@*****.**"; et.DisplayName = "JThomas from AlertSolutions"; et.Attachments = new List<Attachment>() { Attachment.FromText("Attachment.txt",attachmentFile) }; et.TextBody = TextBody.FromText(textbody); et.HtmlBody = HtmlBody.FromText(htmlbody); Assert.IsNotNull(et); Assert.IsNotNull(et.EmailTo); Assert.IsNotNull(et.ToXml()); }