Y
Hacker News
new
|
ask
|
show
|
jobs
by
quickthrower2
3161 days ago
Because these tests become too detached from reality if you inject everything. A silly example to make the point:
IAdder { double Add(double a, double b) }
Test:
car mockAdder = ... // Mock 1+1=2 etc.