DEV Community

Discussion on: Code Smell 135 - Interfaces With just One Realization

 
davidkroell profile image
David Kröll

Can I use your code snippet in another smell ?

Yes feel free.

It depends on what you call a unit I think, bit you're right. If the DieselEngine is testable at all (could be a real DieselEngine which is not availabe during CI test run, etc).

Thread Thread
 
mcsee profile image
Maxi Contieri

Build your abstractions with TDD so they will be testaable from their inception