diff options
| -rw-r--r-- | Mammoth.Tests/DocumentConverterTests.cs | 8 | ||||
| -rw-r--r-- | Mammoth.Tests/TestData/embedded-style-map.docx | bin | 0 -> 49709 bytes |
2 files changed, 8 insertions, 0 deletions
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 @@ -183,6 +183,14 @@ namespace Mammoth.Tests { } [Fact] + public void EmbeddedStyleMapIsUsedIfPresent() { + AssertSuccessfulConversion( + ConvertToHtml("embedded-style-map.docx"), + "<h1>Walking on imported air</h1>" + ); + } + + [Fact] public void CanExtractRawTextFromFile() { AssertSuccessfulConversion( new DocumentConverter().ExtractRawText(TestFilePath("simple-list.docx")), diff --git a/Mammoth.Tests/TestData/embedded-style-map.docx b/Mammoth.Tests/TestData/embedded-style-map.docx Binary files differnew file mode 100644 index 0000000..bb0a5e2 --- /dev/null +++ b/Mammoth.Tests/TestData/embedded-style-map.docx |
