Category Archives: Uncategorized

Unit testing .net / C# private methods

Putting aside arguments about whether private methods should be tested, I’m amazed the PrivateObject class hasn’t received more coverage.

It has been in the framework since VS2005 yet people are still recommending we mark private methods as internal and use the InternalsVisibleToAttribute.

This blog nicely describes how to use PrivateObject.

Been busy…

So after 8 months of applying for visas, the birth of our second child, moving countries (UK to Australia), and abdominal surgery to repair the damage of far too much sport, the posts are set to resume… tbc :)