diff options
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( |
