Re:Prefer Fakes over Mocks
by marcosdumay on Thursday October 15, 2020 @08:52AM
(#24788058)
And in what paradigm do your programs consist of only pure functions? Certainly not on FP, where IO is explicitly added to a lot of code.
Anyway, there isn't much difference between mocking a unity and passing some static data into your functions and comparing the results with the expected ones.
Anyway, there isn't much difference between mocking a unity and passing some static data into your functions and comparing the results with the expected ones.