From: Shadowfirebird Date: 2008-08-02T06:31:30+09:00 Subject: unit testing advice Forgive me if this is a stupid question. (Actually, I know it's a stupid question -- they're the only ones worth asking...) * How do you unit test a method who's job is to interface with the outside world? For example, a method that outputs to a file? * I've done a lot of coding, but in a dinosaur language -- automated unit tests are completely new to me. I understand how to use unit/test; but it seems to me that that's only half the story. I need some suggestions on how to design my code in such a way as it can be tested. Suggestions, anyone? Shadowfirebird