-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Verify
can create setups that causes a subsequent VerifyAll
to fail
#699
Comments
There are more cases affected by this one as well. I would like to share them as they are, IMO, all related with the way how 1. MochBehaviour.Strict has been avoidedReproduction code:
Actual behaviourNo exception Expected behavior
2. It is possible to invoke method\property without proper setupReproduction code:
Actual behaviourNo exception Expected behavior
3. Override the existing setup(IMO the most dangerous)Reproduction code:
Actual behaviour
Expected behavior
|
@stakx - |
@lepijohnny - I am already busy re-architecting the way how recursive / "multi-dot" setup and verification expressions are processed internally. Once I'm done with that, (I should probably mark this and some other issues as "assigned to myself" so others know that a bugfix is already being prepared.) |
Sure, makes sense 👍 |
@lepijohnny - Those bugs are gone now. I mentioned you in the changelog entry because you kindly provided a lot more test cases than I originally thought of; they've made it into the code base (here). Thanks for contributing those! 👍 |
@stakx - I appreciate that! Great job btw! 👍 |
Reproduction code:
Actual behavior:
VerifyAll
throws aMockException
with message:Expected behavior:
All verification steps should pass because there are no invocations nor any setups.
The text was updated successfully, but these errors were encountered: