Skip to content

Commit 79b74b2

Browse files
committed
Small fix
1 parent 430a467 commit 79b74b2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Common/tests/TestUtilities/XUnit/NormalizedStringDataAttribute.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ public class NormalizedStringDataAttribute : CommonMemberDataAttribute
1111
{
1212
public NormalizedStringDataAttribute() : base(typeof(NormalizedStringDataAttribute)) { }
1313

14-
public static ReadOnlyTheoryData TheoryData { get; } = new(new TheoryData<string?, string>()
15-
{
16-
{ null, string.Empty },
17-
{ string.Empty, string.Empty },
18-
{ "teststring", "teststring" }
19-
});
14+
public static IEnumerable<TheoryDataRow<string?, string>> TheoryData { get; } =
15+
[
16+
new(null, string.Empty),
17+
new(string.Empty, string.Empty),
18+
new("teststring", "teststring")
19+
];
2020
}

0 commit comments

Comments
 (0)