I am looking for a way to change the value of a Parameter for a Mock function with FakeItEasy.
I have something like:
var objParam = new ObjParam();
objParam.SomeIntValue = 0;
A.CallTo(() => iClass.Func(objParam)).WithAnyArguments().DoesNothing();
and I want to set the value of objParam
for after the function is called, for example like this:
objParam.SomeIntValue += 1;
objParam
is neither a ref
nor a out
Parameter, it is an object. Is there a way to do this with FakeItEasy?