From 164625ecf3d011503984e9eeb7edda3f827a9c17 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 1 Apr 2017 16:28:04 +0100 Subject: Add test for combining embedded style maps with explicit style maps --- Mammoth.Tests/DocumentConverterTests.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs index 3d1b589..3b8ca6a 100644 --- a/Mammoth.Tests/DocumentConverterTests.cs +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -198,6 +198,14 @@ namespace Mammoth.Tests { ); } + [Fact] + public void ExplicitStyleMapIsCombinedWithEmbeddedStyleMap() { + AssertSuccessfulConversion( + ConvertToHtml("embedded-style-map.docx", mammoth => mammoth.AddStyleMap("r => strong")), + "

Walking on imported air

" + ); + } + [Fact] public void CanExtractRawTextFromFile() { AssertSuccessfulConversion( -- cgit v1.2.3