From 55ce15c0815cd2f703c1fc1b65697fb67799bbc6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 26 Apr 2016 22:17:13 +0100 Subject: Add test for tables --- dotnet/Mammoth.Tests/DocumentConverterTests.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs index ef216f3..ef65385 100644 --- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs +++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs @@ -33,6 +33,20 @@ namespace Mammoth.Tests { "

"); } + // TODO: simple list + + [Fact] + public void WordTablesAreConvertedToHtmlTables() { + assertSuccessfulConversion( + ConvertToHtml("tables.docx"), + "

Above

" + + "" + + "" + + "" + + "

Top left

Top right

Bottom left

Bottom right

" + + "

Below

"); + } + private void assertSuccessfulConversion(IResult result, string expectedValue) { if (result.Warnings.Count > 0) { throw new XunitException("Unexpected warnings: " + string.Join(", ", result.Warnings)); -- cgit v1.2.3