I don't know how to unit-test the main method! Obviously you have no imagination. You test the same method the same way you test static methods: provide known input, and test that the output is what you expect given the input. Which is exactly the same way you'd test Math.abs() and numerous other static methods. (Which is exactly the way I test C# extension methods, e.g. http://anonsvn.mono-projec
![Writing Testable Code](https://cdn-ak-scissors.b.st-hatena.com/image/square/40641bc421dece9b67257107e0bba884af5c23ab/height=288;version=1;width=512/https%3A%2F%2Fblogger.googleusercontent.com%2Fimg%2Fb%2FR29vZ2xl%2FAVvXsEgNWyw4Y5_hwMmvzu2TQN_NRQe6-nor1zoNerbGFZMkuXilBwORhKLK4Cf75dRPb_c_xrgglRKORxnGEMbEzIhylpLol-Z0DvG047859hcp2m3ZB1TXgQAbFp4rAJ7w1TsYsb7ZNw%2Fs1600%2Fgooglelogo_color_200x200.png)