Closed regisf closed 2 years ago
Do you need to add this?
Spy(Method(spy, one)); // Spying one without changing any behavior
// then instead of myClass.one();
spy.one();
Also see docs https://github.com/eranpeer/FakeIt/wiki/Quickstart#spying
@malcolmdavey
Many thanks.
Regards
Similar with the issue #20 Let's take a small code bellow. I which to ensure that the method
one
calls the methodtwo
to avoid side effect. In my program the equivalent to the methodtwo
process an IO, which is not desired in test mode.The test crash with
I don't know if it's a bug or if I doing it wrong.
Could you help me please ?