Hello,
I run into a problem that a cannot solve. I want to
test a class which requires a mock object. The problem is the required object is created by a Factory, and to top it all it, it is a Singleton.
I'd better to describe it in details:
My object uses a NetFactory class which creates a Singleton CfgData via a static method. This CfgData should be substituted by a MockCfgData.
Cloud you please give me some advise how to solve this problem?
Thanks in advance.
Peter