I am in the process of writing of writing some unit tests. In particular I want to test some private methods.
So far the I have come up with using.
#define private public
But I am not happy with this as it will destroy all encapsulation from the point of view of the unit test.
What methods do you use to unit-test private methods.