diff options
Diffstat (limited to 'Mammoth.Tests/DocumentConverterTests.cs')
| -rw-r--r-- | Mammoth.Tests/DocumentConverterTests.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs new file mode 100644 index 0000000..9a977c5 --- /dev/null +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -0,0 +1,16 @@ +using NUnit.Framework; + +namespace Mammoth.Tests +{ + public class DocumentConverterTests + { + [Test] + public void SingleWordParagraphIsConvertedToSingleHtmlParagraph() + { + var documentConverter = new DocumentConverter(); + var result = documentConverter.ConvertToHtml("TestDocuments/single-paragraph.docx"); + Assert.AreEqual("<p>Walking on imported air</p>", result.Value); + Assert.IsEmpty(result.Messages); + } + } +} |
