Skip to content

Commit

Permalink
优化Paragraph测试结构,减少冗余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
ModerRAS committed Aug 10, 2023
1 parent f822b40 commit a7e8bd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BannerlordTwee.Test/ParseParagraphTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ private List<string> GenerateParagraphs(List<Paragraph> paragraphs) {
}
return list;
}
[DataTestMethod]
[DataRow(10)]
[DataRow(100)]
[DataRow(1000)]
public void Test_Parse_Paragraph(int count) {
var parser = new TweeParser("");
var paragraphs = ConstructParagraphs(count);
Expand Down

0 comments on commit a7e8bd9

Please sign in to comment.