From 789ac98fa258692a25eaf5f380088479caa389ac Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 26 Apr 2016 23:25:42 +0100 Subject: Add runtime classes so that PathRelativeFileReader works on .NET --- dotnet/Mammoth.Tests/DocumentConverterTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dotnet/Mammoth.Tests') diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs index 30b7646..1e07f99 100644 --- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs +++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs @@ -54,6 +54,13 @@ namespace Mammoth.Tests { "

"); } + [Fact] + public void ImagesStoredOutsideOfDocumentAreIncludedInOutput() { + assertSuccessfulConversion( + ConvertToHtml("external-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