I've searched a little bit, but having some difficulties finding good examples.

So, I have a template class, in which I'm trying to test some private methods.  Let's table the philosophical reasons for doing so, I'm just having difficulties setting up the mechanics of it.

The best way I've seen, is to make a testing class a friend of class to be tested.  My class to be tested is in a namespace, that the test cases are not members of.  I'm running into all sorts of compiler errors.

Does anyone have sample code about making this work.  Strategies for separating the test code from the production code as much as possible?  This is a first stab at automatic unit testing for me, so any assistance would be great.

Thanks

--dw