Skip to content

Commit 891e570

Browse files
Add unicode testcases in ParameterInstanceTests.MaxParameterColumnWidthCanBeCustomized
See also: #1705
1 parent 5bc9253 commit 891e570

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/BenchmarkDotNet.Tests/ParameterInstanceTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public void TypeParameterValuesDisplayNotTrimmedTypeNameWithoutNamespace(Type ty
6363
[Theory]
6464
[InlineData("012345678901234567890", 21, "012345678901234567890")] // the default is 20
6565
[InlineData("0123456789012345678901234567890123456789", 30, "0123456789(...)0123456789 [40]")]
66+
[InlineData("😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", 20, "😀😀(...)😀😀 [54]")]
67+
[InlineData("a😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀", 20, "a😀😀(...)😀😀 [55]")]
68+
[InlineData("😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀b", 20, "😀😀(...)😀😀b [55]")]
69+
[InlineData("a😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀b", 20, "a😀😀(...)😀😀b [56]")]
6670
public void MaxParameterColumnWidthCanBeCustomized(string initialLongText, int maxParameterColumnWidth, string expectedDisplayText)
6771
{
6872
var summaryStyle = SummaryStyle.Default.WithMaxParameterColumnWidth(maxParameterColumnWidth);

0 commit comments

Comments
 (0)