Possible Duplicate:
What's the best way of unit testing private methods?
As private method's visibility does not allow for them to be seen outside of the class, how can you write tests to make sure they work as expected?
Suppose making them protected or public is not an option. Additionally suppose that your test code must reside separately from your production code.
Please advise and if possible, provide an example