Exemple #1
0
        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());
        }
Exemple #2
0
        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());
        }