Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Contains and ContainsAny extension methods for IObjectProvider<IEnumerable<TSource>> #710

Closed
YevgeniyShunevych opened this issue Nov 30, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

Add extension methods:

public static bool Contains<TSource>(
    this IObjectProvider<IEnumerable<TSource>> source,
    params TSource[] items);

public static bool Contains<TSource>(
    this IObjectProvider<IEnumerable<TSource>> source,
    IEnumerable<TSource> items);

public static bool ContainsAny<TSource>(
    this IObjectProvider<IEnumerable<TSource>> source,
    params TSource[] items);

public static bool ContainsAny<TSource>(
    this IObjectProvider<IEnumerable<TSource>> source,
    IEnumerable<TSource> items);

Usage

page.SomeInput.DomClasses.Contains("class-a", "class-b");
page.SomeInput.DomClasses.ContainsAny("disabled", "state-disabled");
@YevgeniyShunevych YevgeniyShunevych added this to the 2.5.0 milestone Nov 30, 2022
@YevgeniyShunevych YevgeniyShunevych self-assigned this Nov 30, 2022
YevgeniyShunevych added a commit that referenced this issue Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant