How to mock static class or static member for testing

One of the problems with static members or static classes is that you can't mock them for proper unit-testing. Instead of taking this fact for granted, let's demonstrate it. Assume that we have the following classes (please note, this is just Read More...

Read the complete post at http://www.lnbogen.com/HowToMockStaticClassOrStaticMemberForTesting.aspx

Published Wednesday, July 04, 2007 7:12 AM by Oren Ellenbogen's Blog - TDD
Filed under: