5 ms·
Also error conditions - telling a fake to give you a specific error before you run the test is no different from telling a mock to do it.
by TheReveller 5y ago
Also error conditions - telling a fake to give you a specific error before you run the test is no different from telling a mock to do it.
- marcosdumay 5y agoIt is different. You tell the mock to give you an specific error with specific information, while you tell the fake to give you the error for an specific condition. It is subtle and may not be worth the time, but again, it may be.