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

Fix VerifyAll + VerifyNoOtherCalls for sequence setups #672

Merged
merged 2 commits into from
Sep 1, 2018

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Sep 1, 2018

The previous refactoring (#671) has broken the combination of using VerifyAll followed by VerifyNoOtherCalls for sequence setups. This PR adds a regression test for such a scenario, and fixes it.

This is a regression caused by the introduction of the new `Setup`
base class. `MethodCall.Execute` contains logic that marks invocations
as matched by a setup, which is required for `VerifyNoOtherCalls` to
work well together with `Verify[All]`.

This logic will have to be extracted from `MethodCall`.
@stakx stakx merged commit e074bfe into devlooped:master Sep 1, 2018
@stakx stakx deleted the verifynoothercalls branch September 1, 2018 21:11
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.

None yet

1 participant