Why is it hard to unit test a system that depends on singletons?

A great article about this is Singletons are Pathological Liars. This describes, using a simple example, why testing using singletons is unexpectedly hard.

Leave a Comment