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

Make VerifyAll ignore setups from SetupAllProperties #684

Merged
merged 3 commits into from
Sep 5, 2018

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Sep 5, 2018

This resolves #681 (and fixes both #191 and #556) by making VerifyAll ignore the setups registered by SetupAllProperties.

This adds a test demonstrating that `SetupAllProperties` as it is
currently implemented makes `VerifyAll` fail. `SetupAllProperties`
registers a setup for each and every property accessor, requiring the
user to invoke every one of those to make `VerifyAll` pass. This ren-
ders `VerifyAll` rather useless in practice.
Those property accessors that are auto-implemented by `SetupAllProper-
ties` no longer need to be invoked in order to pass verification by
`VerifyAll`. (This is easily implemented now that setups verify them-
selves, because for auto-implemented property accessors we have two
dedicated setup types.)
@stakx stakx added this to the 4.10.0 milestone Sep 5, 2018
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.

Does SetupAllProperties actually create any setups, or does it not?
1 participant