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 overloaded collection verification methods with IEnumerable argument #324

Closed
YevgeniyShunevych opened this issue Nov 6, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

@YevgeniyShunevych YevgeniyShunevych commented Nov 6, 2019

Most collection verification methods currently take params T[] expected as an argument. We need to have overloaded versions of these methods with IEnumerable<T>expected argument.

The following verification extension methods should be added:

public static TOwner BeEquivalent<TData, TOwner>(this IDataVerificationProvider<IEnumerable<TData>, TOwner> should, IEnumerable<TData> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner BeEquivalent<TData, TOwner>(this IDataVerificationProvider<IEnumerable<IDataProvider<TData, TOwner>>, TOwner> should, IEnumerable<TData> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner EqualSequence<TData, TOwner>(this IDataVerificationProvider<IEnumerable<TData>, TOwner> should, IEnumerable<TData> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner EqualSequence<TData, TOwner>(this IDataVerificationProvider<IEnumerable<IDataProvider<TData, TOwner>>, TOwner> should, IEnumerable<TData> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner Contain<TItem, TOwner>(this IDataVerificationProvider<IEnumerable<TItem>, TOwner> should, IEnumerable<TItem> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner Contain<TData, TOwner>(this IDataVerificationProvider<IEnumerable<IDataProvider<TData, TOwner>>, TOwner> should, IEnumerable<TData> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner Contain<TOwner>(this IDataVerificationProvider<IEnumerable<string>, TOwner> should, TermMatch match, IEnumerable<string> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner Contain<TOwner>(this IDataVerificationProvider<IEnumerable<IDataProvider<string, TOwner>>, TOwner> should, TermMatch match, IEnumerable<string> expected)
    where TOwner : PageObject<TOwner>;

public static TOwner ContainHavingContent<TControl, TOwner>(this IDataVerificationProvider<IEnumerable<TControl>, TOwner> should, TermMatch match, IEnumerable<string> expected)
    where TControl : Control<TOwner>
    where TOwner : PageObject<TOwner>;

public static TOwner HaveClass<TComponent, TOwner>(this IUIComponentVerificationProvider<TComponent, TOwner> should, IEnumerable<string> classNames)
    where TComponent : UIComponent<TOwner>
    where TOwner : PageObject<TOwner>;
@YevgeniyShunevych YevgeniyShunevych added this to the 1.4.0 milestone Nov 6, 2019
@YevgeniyShunevych YevgeniyShunevych self-assigned this Nov 6, 2019
@YevgeniyShunevych YevgeniyShunevych changed the title Add overloaded methods with IEnumerable argument for collection verification methods Add overloaded collection verification methods with IEnumerable argument Nov 6, 2019
YevgeniyShunevych added a commit that referenced this issue Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.