Skip navigation.

Singletons and testing

Singletons and testing

When you need to jump through hoops to write tests you've done it wrong. Jonathan de Halleux writes about testing singletons and how he can subvert the standard C# singleton pattern to create a new singleton for each test he needs to run for the singleton. Omer then subverts the rules another way. Both are wrong.
Posted by Len at 11:50 PM | Comments (15) | TrackBack (4) | Categories: Testing