We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430a467 commit 79b74b2Copy full SHA for 79b74b2
src/Common/tests/TestUtilities/XUnit/NormalizedStringDataAttribute.cs
@@ -11,10 +11,10 @@ public class NormalizedStringDataAttribute : CommonMemberDataAttribute
11
{
12
public NormalizedStringDataAttribute() : base(typeof(NormalizedStringDataAttribute)) { }
13
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
- });
+ public static IEnumerable<TheoryDataRow<string?, string>> TheoryData { get; } =
+ [
+ new(null, string.Empty),
+ new(string.Empty, string.Empty),
+ new("teststring", "teststring")
+ ];
20
}
0 commit comments