diff --git a/NPOI.WordTemplateMapper.Tests/XWPF/DocumentMapperTests/MapDocumentTests.cs b/NPOI.WordTemplateMapper.Tests/XWPF/DocumentMapperTests/MapDocumentTests.cs index bb4271c..e39a962 100644 --- a/NPOI.WordTemplateMapper.Tests/XWPF/DocumentMapperTests/MapDocumentTests.cs +++ b/NPOI.WordTemplateMapper.Tests/XWPF/DocumentMapperTests/MapDocumentTests.cs @@ -19,11 +19,11 @@ public void ItShould_MapFullDocument() Mock tableRowMapperMock = new(); tableRowMapperMock -.Setup(t => t.MapDictionaryToRow( - It.IsAny(), - It.IsAny>() -)) -.Returns>((r, d) => r); + .Setup(t => t.MapDictionaryToRow( + It.IsAny(), + It.IsAny>() + )) + .Returns>((r, d) => r); tableRowMapperMock .Setup(t => t.MapEnumerableToRow( It.IsAny(), diff --git a/NPOI.WordTemplateMapper.Tests/XWPF/ParagraphMapperTests/MapParagraphTests.cs b/NPOI.WordTemplateMapper.Tests/XWPF/ParagraphMapperTests/MapParagraphTests.cs index 8acb0b8..e51108c 100644 --- a/NPOI.WordTemplateMapper.Tests/XWPF/ParagraphMapperTests/MapParagraphTests.cs +++ b/NPOI.WordTemplateMapper.Tests/XWPF/ParagraphMapperTests/MapParagraphTests.cs @@ -10,15 +10,18 @@ public class MapParagraphTests [Theory] [InlineData("{{A}} dolor sit amet", "lorem ipsum dolor sit amet")] [InlineData("{{B}} jumps over the lazy dog", "the quick brown fox jumps over the lazy dog")] + [InlineData("{{D}} at all\ntimes.", "The missile\nknows where\nit is at all\ntimes.\n")] [InlineData("", "")] [InlineData("ABCDEFG", "ABCDEFG")] + [InlineData("Hey guys\ndid you know\nvaporeon", "Hey guys\ndid you know\nvaporeon")] public void ItShould_MapParagraph(string paragraphText, string expecctedText) { Dictionary data = new() { { "{{A}}", "lorem ipsum" }, { "{{B}}", "the quick brown fox" }, - { "{{C}}", "het fikse aquaduct" } + { "{{C}}", "het fikse aquaduct" }, + { "{{D}}", "The missile\nknows where\nit is" }, }; CT_P ctParagraph = new();