I cannot understand why FakeItEasy
does not allow me to set return value for public method with parameters.
The code:
var fakeInstanse = A.Fake<SomeClass>();
A.CallTo(() => fakeInstanse.Method(param1, param1));
The Method
is the public one, accepts two parameters. Normally I would call Returns()
method on second line of code, but Visual Studio does not show it among available.
What might affect this behavior? What part of SomeClass
or Method
definition might cause this?