public void AttachBytes(bool verbose, string expectedOutput)
        {
            StringMarkupDocumentWriter logWriter = new StringMarkupDocumentWriter(verbose);
            logWriter.Attach(new BinaryAttachment("foo", "application/octet-stream", new byte[0])); 

            Assert.AreEqual(expectedOutput, logWriter.ToString());
        }
        public void AttachText(bool verbose, string expectedOutput)
        {
            StringMarkupDocumentWriter logWriter = new StringMarkupDocumentWriter(verbose);
            logWriter.Attach(new TextAttachment("foo", "text/plain", "don't care"));

            Assert.AreEqual(expectedOutput, logWriter.ToString());
        }