This is a nice trick I ran into when going over the sourcecode for the XML-RPC.NET library:

#if (DEBUG)
public
#endif
void Serialize(...)

This lets you run your unit tests when developing, but remember to set your methods to private when releasing.