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

Provide custom data type to hold data source entries #2227

Closed
Evangelink opened this issue Feb 1, 2024 · 0 comments · Fixed by #4930
Closed

Provide custom data type to hold data source entries #2227

Evangelink opened this issue Feb 1, 2024 · 0 comments · Fixed by #4930

Comments

@Evangelink
Copy link
Member

Evangelink commented Feb 1, 2024

As alternative to IEnumerable<object[]> and IEnumerable<(Value)Tuple<...>> we could offer a new type, that people could use for their data source.

For inspiration, xUnit has TheoryData which provides type-safe dynamic data.
See e.g. https://andrewlock.net/creating-strongly-typed-xunit-theory-test-data-with-theorydata/.
Especially the last code-snippet shows how how concise it can be used.

Originally posted by @jnyrup in #1335 (comment)

AB#2332769

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