From 1ccd812fd633ca0f5da89b0fb6acfbf3136868d2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 7 May 2015 21:44:57 +0000 Subject: Read messages from result --- Mammoth.Tests/DocumentConverterTests.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Mammoth.Tests/DocumentConverterTests.cs') diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs index 9a977c5..37cec23 100644 --- a/Mammoth.Tests/DocumentConverterTests.cs +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -12,5 +12,13 @@ namespace Mammoth.Tests Assert.AreEqual("

Walking on imported air

", result.Value); Assert.IsEmpty(result.Messages); } + + [Test] + public void UnrecognisedStylesAreStatedInMessages() + { + var documentConverter = new DocumentConverter(); + var result = documentConverter.ConvertToHtml("TestDocuments/unrecognised-paragraph-styles.docx"); + Assert.AreEqual("Unrecognised paragraph style: 'Funky' (Style ID: style20)", result.Messages[0].Value); + } } } -- cgit v1.2.3