What does a unit test primarily verify?
- aThat the whole application behaves correctly from the end user's perspective
- bThat a small, isolated piece of logic behaves correctly on its own✓
- cThat the application stays responsive under heavy load
- dThat separate modules communicate with each other correctly
Explanation:A unit test targets the smallest testable piece of logic in isolation from external dependencies. Verifying modules working together (d) is the job of integration tests, and the end-user perspective (a) belongs to end-to-end tests.