From 45897f5b0a254b56e0f3edde771cbfe14cc173bb Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 1 Apr 2017 16:21:41 +0100 Subject: Add test case for embedded style map --- Mammoth.Tests/DocumentConverterTests.cs | 8 ++++++++ Mammoth.Tests/TestData/embedded-style-map.docx | Bin 0 -> 49709 bytes 2 files changed, 8 insertions(+) create mode 100644 Mammoth.Tests/TestData/embedded-style-map.docx diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs index ab0f63e..1d4da54 100644 --- a/Mammoth.Tests/DocumentConverterTests.cs +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -182,6 +182,14 @@ namespace Mammoth.Tests { Assert.Equal("

Apple

Banana

", result.Value); } + [Fact] + public void EmbeddedStyleMapIsUsedIfPresent() { + AssertSuccessfulConversion( + ConvertToHtml("embedded-style-map.docx"), + "

Walking on imported air

" + ); + } + [Fact] public void CanExtractRawTextFromFile() { AssertSuccessfulConversion( diff --git a/Mammoth.Tests/TestData/embedded-style-map.docx b/Mammoth.Tests/TestData/embedded-style-map.docx new file mode 100644 index 0000000..bb0a5e2 Binary files /dev/null and b/Mammoth.Tests/TestData/embedded-style-map.docx differ -- cgit v1.2.3