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

Allow single type as return of [DynamicData] sources #4363

Open
Evangelink opened this issue Dec 16, 2024 · 0 comments · May be fixed by #4389
Open

Allow single type as return of [DynamicData] sources #4363

Evangelink opened this issue Dec 16, 2024 · 0 comments · May be fixed by #4389

Comments

@Evangelink
Copy link
Member

Summary

Simplify even further allowed type for the data souce methods.

Background and Motivation

Data sources provided for [DynamicData] have been simplified to allow IEnumerable<ITuple> in addition to IEnumerable<object[]> and we should go even further by allowing T to be any type (e.g. IEnumerable<int>, IEnumerable<MyType>...). As you may still want to use a source despite having a single parameter in your test method as you benefit from unfolding/expanding.

Proposed Feature

Allow any IEnumerable<T> type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants