New answers tagged


Unit Tests and Integration Tests are orthgonal to each other. They offer a different view on the application you are building. Usually you want both. But the point in time differs, when you want which kind of tests. The most often you want Unit Tests. Unit tests focus on a small portion of the code being tested - what exactly is called a unit is left to ...


In the above scenario, if you're testing communication between A and B, you don't want to mock B (since you're testing it, or at least the A-facing part of B). Mocking C would be appropriate here.

Top 50 recent answers are included