Skip to content

Remove InternalsVisibleTo for tests #6

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

Closed
stephentoub opened this issue Mar 19, 2025 · 0 comments · Fixed by #46
Closed

Remove InternalsVisibleTo for tests #6

stephentoub opened this issue Mar 19, 2025 · 0 comments · Fixed by #46

Comments

@stephentoub
Copy link
Contributor

The tests should be validating the public surface area. While now and then there may be things that can only be validated with internals, a lot of these being necessary is an indication that the wrong surface area is exposed. In many cases, it's expected there should be a way to exercise the functionality via public API, even if requiring mocking or the like.

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 a pull request may close this issue.

1 participant