What is the purpose of a 'test double' in TDD?
-
A
Running the same test twice to confirm results
-
B
Replacing a real dependency with a simplified substitute for testing
-
C
Writing two tests for every requirement
-
D
Duplicating tests across multiple environments