Closed stefanpoeter closed 6 years ago
Hi Stefan,
I'm not sure I 100% understand what you need, but could it be solved with a custom return value delegate for write
that captures what is passed?
https://github.com/meekrosoft/fff#custom-return-value-delegate
There is an example test that shows how it is done: https://github.com/meekrosoft/fff/blob/4e7451acd15715c95b275ebab6e77d9eb5b9cd7b/test/test_cases.include#L215
Best, Mike
Hi Mike,
that could work, thanks, I'll try it later.
Greetings, Stefan
https://github.com/meekrosoft/fff#how-do-i-fake-a-function-that-returns-a-value-by-reference
Thats what I was looking for. Thanks for your help.
Hi all,
imagine the following scenario:
The
method_that_calls_write
create a object on the stack that look likesend
and writes its content. After the call tomethod_that_calls_write
the created object on the stack is not accesible anymore, hence, I cannot check the written data.Is there a feature planned to make expectation to a mock object and check these expectations later on?