Skip to content

Commit 5153720

Browse files
committed
TestIssue Avoid Split Tag
1 parent 3335129 commit 5153720

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

samples/docx/TestIssue43.docx

11.4 KB
Binary file not shown.

src/MiniWord/MiniWord.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>net45;netstandard2.0;net5.0</TargetFrameworks>
4-
<Version>0.6.0</Version>
4+
<Version>0.6.1</Version>
55
</PropertyGroup>
66
<PropertyGroup>
77
<AssemblyName>MiniWord</AssemblyName>

tests/MiniWordTests/IssueTests.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ namespace MiniWordTests
99
{
1010
public class IssueTests
1111
{
12+
[Fact]
13+
public void TestIssueAvoidSplitTag()
14+
{
15+
{
16+
var path = PathHelper.GetTempFilePath();
17+
var templatePath = PathHelper.GetFile("TestDemo04.docx");
18+
var value = new Dictionary<string, object>
19+
{
20+
["title"] = "Hello MiniWord",
21+
};
22+
MiniWord.SaveAsByTemplate(path, templatePath, value);
23+
var xml = Helpers.GetZipFileContent(path, "word/document.xml");
24+
Assert.Contains(@"MiniWord", xml);
25+
}
26+
}
1227

1328
/// <summary>
1429
/// [Text color multiple tags format error · Issue #37 · mini-software/MiniWord]

0 commit comments

Comments
 (0)