From c3f394bb9b6a91ccde7b2255e46db463afc63652 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 7 May 2015 21:27:34 +0000 Subject: Use edge.js to run mammoth.js from .NET --- Mammoth.Tests/DocumentConverterTests.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Mammoth.Tests/DocumentConverterTests.cs (limited to 'Mammoth.Tests/DocumentConverterTests.cs') 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("

Walking on imported air

", result.Value); + Assert.IsEmpty(result.Messages); + } + } +} -- cgit v1.2.3