summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-04-01 16:28:04 +0100
committerMichael Williamson <mike@zwobble.org>2017-04-01 16:28:04 +0100
commit164625ecf3d011503984e9eeb7edda3f827a9c17 (patch)
tree3155718e3b6f0f761188882a432bc9790d26026f
parent0e85566f4b327853bf27d09d311783e0e988e733 (diff)
Add test for combining embedded style maps with explicit style maps
-rw-r--r--Mammoth.Tests/DocumentConverterTests.cs8
1 files changed, 8 insertions, 0 deletions
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
@@ -199,6 +199,14 @@ namespace Mammoth.Tests {
}
[Fact]
+ public void ExplicitStyleMapIsCombinedWithEmbeddedStyleMap() {
+ AssertSuccessfulConversion(
+ ConvertToHtml("embedded-style-map.docx", mammoth => mammoth.AddStyleMap("r => strong")),
+ "<h1><strong>Walking on imported air</strong></h1>"
+ );
+ }
+
+ [Fact]
public void CanExtractRawTextFromFile() {
AssertSuccessfulConversion(
new DocumentConverter().ExtractRawText(TestFilePath("simple-list.docx")),