

2·
7 days agoI agree if it’s checking if a method gives the right output for a specific input. But i’m more concernd with checking if it issued the right side effects, i.e. called right services and so on and then checking if it made right calls to the mocks.
Yes always is probably wrong, but not having global state allows you to argue just by function signature and allows easier unit testing and multithreading and probably more.