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
Record ReturnValue on CompletedFakeObjectCall #1697
Record ReturnValue on CompletedFakeObjectCall #1697
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.
Looks generally good, @thomaslevesque. I felt bad I hadn't told you to squash up earlier, but fortunately I had more comments and questions. In addition to the ones inline, I wonder if it isn't worthwhile testing a faked delegate as well? The implementation is slightly different. On the other hand, I do expect it to work, so I leave it to your discretion.
src/FakeItEasy/Creation/CastleDynamicProxy/CastleInvocationCallAdapter.cs
Outdated
Show resolved
Hide resolved
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.
I meant to "request changes", at least for the unfixedup comment.
And I just thought of another thing ICompletedFakeObjectCall.ReturnValue
has a slightly misleading comment, as I noted in the issue. Perhaps a good idea to fix up while you're here, if you'd be so kind, to indicate that it's the value that was returned, not the value set to be returned.
It is! |
Will do |
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. Looking good. Squash it up!
5c48fee
to
893e526
Compare
Done |
Thanks, @thomaslevesque! |
Thanks for the review! |
Fixes #1696
WIP because I want to try another approachScratch that, my idea won't work...