You should check your code in isolation . Otherwise, you donโt know if your code leads as expected, or if there is a side effect in the external dependency. Thus, creating mockup wrappers for external resources (configuration files, timers, etc.) is the only way to separate your SUT from external code.
source share