Skip to content

Commit 67890be

Browse files
scottsauberegil
andauthored
theorydata
Co-authored-by: Egil Hansen <egil@assimilated.dk>
1 parent 61730ed commit 67890be

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tests/bunit.web.query.tests/Labels/LabelQueryExtensionsTests.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ namespace Bunit.Labels;
44

55
public class LabelQueryExtensionsTests : TestContext
66
{
7-
public static IEnumerable<object[]> HtmlElementsThatCanHaveALabel =>
8-
new List<object[]>
9-
{
10-
new object[] { "input" },
11-
new object[] { "select" },
12-
new object[] { "button" },
13-
new object[] { "meter" },
14-
new object[] { "output" },
15-
new object[] { "progress" },
16-
};
7+
public static TheoryData<string> HtmlElementsThatCanHaveALabel { get; } = new()
8+
{
9+
"input",
10+
"select",
11+
"button",
12+
"meter",
13+
"output",
14+
"progress",
15+
};
1716

1817
[Theory(DisplayName = "Should return back associated element with label when using the for attribute")]
1918
[MemberData(nameof(HtmlElementsThatCanHaveALabel))]

0 commit comments

Comments
 (0)