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

Added an argument expectation method to check if expected arguments are parts of real arguments when mocked methods are called #967

Merged
merged 3 commits into from May 13, 2019

Conversation

yutod
Copy link
Contributor

@yutod yutod commented Apr 5, 2019

This PR is a wrapper of argument expectation.
Already custom validation for arguments can be possible to pass callback function to withArgs, which is good!
However, I'd like to suggest the feature to reduce our test code to prepare this wrapper method.
This method helps you to check if expected arguments are actually set when mocked methods are called.

…re parts of real arguments when mocked methods are called
Copy link
Collaborator

@robertbasic robertbasic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yutod for this feature! Would you mind adding it to the docs as well with this PR?

@yutod
Copy link
Contributor Author

yutod commented Apr 29, 2019

@robertbasic Thanks for reviewing and feedback!
I added some description on docs. I appreciate your feedback again.

@robertbasic
Copy link
Collaborator

Looking good, thanks @yutod!

@yutod
Copy link
Contributor Author

yutod commented May 9, 2019

@davedevelopment
Thank you for asking @robertbasic to review this PR.
Looks like this changed is confirmed!

If you have further suggestion or any feedback, I'll happily improve it!

Thank you,

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

3 participants