Dealing With Production Code In Tests When we're writing tests, it's not always possible to run production code independent of the system. In those cases, we use Test Doubles