From 0e85566f4b327853bf27d09d311783e0e988e733 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 1 Apr 2017 16:25:46 +0100 Subject: Add test case for embedded style map precedence --- Mammoth.Tests/DocumentConverterTests.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs index 1d4da54..3d1b589 100644 --- a/Mammoth.Tests/DocumentConverterTests.cs +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -190,6 +190,14 @@ namespace Mammoth.Tests { ); } + [Fact] + public void ExplicitStyleMapTakesPrecedenceOverEmbeddedStyleMap() { + AssertSuccessfulConversion( + ConvertToHtml("embedded-style-map.docx", mammoth => mammoth.AddStyleMap("p => p")), + "

Walking on imported air

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