-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Add mock.Protected().Verify
overloads with additional exactParameterMatch
parameter
#753
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thank you very much for taking care of this! 👍
One additional request, could you please update the CHANGELOG.md
as well? I would suggest the following two changes:
-
Under the Unreleased → Added heading:
#### Added * New method overload `mock.Protected().Setup("VoidMethod", exactParameterMatch, args)` overload having a `bool exactParameterMatch` parameter. Due to method overload resolution, it was easy to think this already existed resolution when in fact it did not, leading to failing tests. (@stakx, #751) +* <Brief mention of the added method overloads, doesn't need to be as verbose as the above entry> (@Shereef, #753)
-
Rephrase the current entry under the Unreleased → Changed section so it includes your added overloads:
-* Method overload resolution for `mock.Protected().Setup("VoidMethod", ...)` may change due to a new overload: If you set up a `void` method whose first argument is a `bool`, make sure that argument gets interpreted as part of `args`, not as `exactParameterMatch` (see also *Added* section below). (@stakx, #751) +* Method overload resolution for `mock.Protected().Setup("VoidMethod", ...)` and `mock.Protected().Verify(...)` may change due to new overloads: If the first argument is a `bool`, make sure it gets interpreted as part of `args`, not as `exactParameterMatch` (see also *Added* section below). (@stakx & @Shereef, #751, #753)
Thank you for your work!
mock.Protected().Verify
overloads with additional exactParameterMatch
parameter
I hope you don't mind me having altered your PR's title and description.
|
I wanted to know if there will be a Nuget build that has this soon, obviously, I would prefer it to be out sooner rather than later, however, I understand you may be holding off until v5 which is fine. I have a workaround in place and wanted to know when should I plan on undoing this workaround. No rush. take you time. EDIT: I found https://github.com/moq/moq4/milestone/8 so it just needs a few more issues no need to answer the above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stakx: I can't get it to change the status from changes requested, Am I doing something wrong ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes you made. 👍 If I may, I'd like to ask you to rephrase the changelog entries a little... then we'll be good to merge! See the review comments below for details.
Only the reviewer (and possibly other Moq team members) can change that status. So don't worry about it, you're doing the right thing. ;-) (Btw. you can usually also leave the "resolve conversation" thingy to the reviewer who initiallycommented, or requested a change. It's a useful tool for them to track remaining changes.)
You already found the milestone. To put its remaining issues into context of a concrete time frame, know that one of them is a rather large internal re-architecting that I have been planning and preparing for more than a year... so the 4.11.0 release is likely to take another two to three months, I'm afraid. If there's more delay than that, I'll consider doing an ad-hoc 4.10.2 release including the non-breaking changes from 4.11.0. |
Thanks for your response, there is no hurry, take your time, this can wait a few months!
Will do!
Thanks for the assurance and the explanations! |
I've noticed that you've rewritten your PR to a few focused commits... awesome work, I couldn't ask for more. 😍
I've merged #755. (Thanks again for that, btw.!) Everything is looking good with this PR, but if you want to make any final changes (e.g. rebase it on top of |
…ethod group has no overloads with `bool exactParameterMatch`
…erify<TResult>` with `bool exactParameterMatch` devlooped#752
I found a secret PR about contribution ^_^, my pleasure to comply!
I have rebased, fixed the first commit to comply with the grouping of imports then force pushed, it's really my pleasure! ;) |
All good! 🚀 Your contribution is very much appreciated, thank you! |
Your repository and all the work you do for it is much more appreciated, Thank you! |
Well, I'm actually just a maintainer, but not the owner of this project & repository... but thanks for the kinds words nevertheless. ❤️ |
You are a maintainer that replies and works on 24/7 to/on this repository you may not really own it, but it is clear to me that you are someone who takes ownership of whatever project they are handling and treats it accordingly, so thank you! Let me know if there is anything I can do to make this ship sooner to the public or just generally help. |
Closes #752.