-
Notifications
You must be signed in to change notification settings - Fork 262
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 DynamicData source to be on base types #4482
base: main
Are you sure you want to change the base?
Allow DynamicData source to be on base types #4482
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One TODO to drop or fix but other LGTM
// TODO: Should we pass true for includeNonPublic? | ||
testMethodInfo = PlatformServiceProvider.Instance.ReflectionOperations.GetRuntimeMethod(methodBase.DeclaringType!, methodBase.Name, parameters, includeNonPublic: false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say no except if after the refactoring we no longer support internal test methods (I hope we have a test for that).
Please remove the comment or fix the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includeNonPublic: false
preserves the existing behavior. But I'm suspecting that to be a bug when DiscoverInternals
is used, which is why I left it as "TODO". Let's discuss/investigate more on Monday.
Fixes #4347