Test Double Usage
Test Double Construction
Also known as
How can we verify logic independently when code it depends on is unusable?How can we avoid Slow Tests?
We replace a component on which the SUT depends with a "test-specific equivalent."
Sometimes it is just plain hard to test the SUT because it depends on other components that cannot be used in the test environment. Such ...