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