From 67890be306d2c5bf260d91ae1f78ec6b4ff729f5 Mon Sep 17 00:00:00 2001 From: Scott Sauber Date: Wed, 1 Nov 2023 21:22:31 -0500 Subject: [PATCH] theorydata Co-authored-by: Egil Hansen --- .../Labels/LabelQueryExtensionsTests.cs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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))]