diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-28 22:14:13 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-28 22:14:13 +0100 |
| commit | 63b8685c562d1ec2c27b642e3d9ded3f7be46c86 (patch) | |
| tree | cc3874fa3eb311685b28816a0361aa981f07692a /dotnet/Mammoth.Tests | |
| parent | 47a53a67199033258a953cc5b71981328eab7e49 (diff) | |
Enable DisableDefaultStyleMap
Diffstat (limited to 'dotnet/Mammoth.Tests')
| -rw-r--r-- | dotnet/Mammoth.Tests/DocumentConverterTests.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs index 8788b9d..77b1207 100644 --- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs +++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs @@ -136,6 +136,13 @@ namespace Mammoth.Tests { "<p><strong>The <em>Sunset</em> Tree</strong></p>"); } + [Fact] + public void CanDisableDefaultStyleMap() { + var result = ConvertToHtml("simple-list.docx", mammoth => mammoth.DisableDefaultStyleMap()); + Assert.Equal(new[]{"Unrecognised paragraph style: List Paragraph (Style ID: ListParagraph)"}, result.Warnings); + Assert.Equal("<p>Apple</p><p>Banana</p>", result.Value); + } + [Fact] public void CanExtractRawTextFromFile() { AssertSuccessfulConversion( |
