Skip to content

Commit

Permalink
fix: switch to array for strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsauber committed Nov 13, 2023
1 parent 8617b7b commit d2812b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bunit.web.query/Labels/LabelQueryExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using AngleSharp.Dom;
using System.Collections.ObjectModel;
using AngleSharp.Dom;
using Bunit.Labels.Strategies;

namespace Bunit;

public static class LabelQueryExtensions
{
private static readonly List<ILabelTextQueryStrategy> LabelTextQueryStrategies = new()
private static readonly IReadOnlyList<ILabelTextQueryStrategy> LabelTextQueryStrategies = new ILabelTextQueryStrategy[]
{
// This is intentionally in the order of most likely to minimize strategies tried to find the label
new LabelTextUsingForAttributeStrategy(),
Expand Down

0 comments on commit d2812b6

Please sign in to comment.