My guess is they prefer mocks over spies because you want to restrict the code under test as much as possible when unit testing. By using a spy, ...
確定! 回上一頁