This is a nice trick I ran into when going over the sourcecode for the XML-RPC.NET library:
#if
This lets you run your unit tests when developing, but remember to set your methods to private when releasing.
Published Saturday, April 02, 2005 7:16 PM by AvnerK
Omer van Kloeten
Ori Folger
Avner Kashtan