diff --git a/tests/bunit.web.query.tests/Labels/LabelQueryExtensionsTests.cs b/tests/bunit.web.query.tests/Labels/LabelQueryExtensionsTests.cs index 261f98544..44db6a118 100644 --- a/tests/bunit.web.query.tests/Labels/LabelQueryExtensionsTests.cs +++ b/tests/bunit.web.query.tests/Labels/LabelQueryExtensionsTests.cs @@ -4,16 +4,15 @@ namespace Bunit.Labels; public class LabelQueryExtensionsTests : TestContext { - public static IEnumerable HtmlElementsThatCanHaveALabel => - new List - { - new object[] { "input" }, - new object[] { "select" }, - new object[] { "button" }, - new object[] { "meter" }, - new object[] { "output" }, - new object[] { "progress" }, - }; + public static TheoryData HtmlElementsThatCanHaveALabel { get; } = new() + { + "input", + "select", + "button", + "meter", + "output", + "progress", + }; [Theory(DisplayName = "Should return back associated element with label when using the for attribute")] [MemberData(nameof(HtmlElementsThatCanHaveALabel))]