From 0e1dd2bfb5f2a346caf66aad8bccf0a69caac760 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 26 Apr 2016 22:17:48 +0100 Subject: Add test for inline images --- dotnet/Mammoth.Tests/DocumentConverterTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs index ef65385..30b7646 100644 --- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs +++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs @@ -47,6 +47,13 @@ namespace Mammoth.Tests { "

Below

"); } + [Fact] + public void InlineImagesAreIncludedInOutput() { + assertSuccessfulConversion( + ConvertToHtml("tiny-picture.docx"), + "

"); + } + 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