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

Refactor TestSelection class to implement IEnumerable interface #1136

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

rowo360
Copy link
Contributor

@rowo360 rowo360 commented Oct 8, 2024

This PR resolves issue #1111

The root cause of that crash was that the code didn't handle checking/unchecking TestGroups nodes so far.

This solution improves the TestSelection class so that either TestNodes or TestGroups maybe added. For that purpose the internal implementation was changed: the TestSelection class exposes only the interface IEnumerable<TestNode> and uses a private Hashset for the list of nodes internally. So the choice about using a Hashset or List is only an internal implementation detail of that class.

As a consequence several code locations must be adapted. These adaptations were not conceptual changes, but mostly using Linq to access the IEnumerable<TestNode>.

@CharliePoole
Copy link
Contributor

If this is actually ready and only blocked because of AppVeyor, I can merge it on my machine and push straight to main.

@CharliePoole CharliePoole merged commit 6971c79 into main Oct 10, 2024
3 of 4 checks passed
@CharliePoole CharliePoole deleted the TestSelectionExtension branch October 10, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants