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

ControlList<TItem, TOwner> caches and returns the same item for similar predicate #570

Closed
YevgeniyShunevych opened this issue Oct 25, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Oct 25, 2021

When caching is disabled, ControlList<TItem, TOwner> caches and returns the same item for similar (but different) predicate.

Reported in #569 issue.

Example to reproduce

foreach (var expectedRow in table.Rows)
{
    On<DataPage>()
        .DataTable.Rows[x => x.Name.Value.Contains(expectedRow["field"])].Value1.Should.Equal(expectedRow["value1"]);
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