Hi. Sounds like something is subscribing to IEntityMonitor.DataCleared during your arrange..
Some constructors maybe? I would search somewhere along > entityImageCache = new EntityImageCache(session, entityMonitorMock); Nils Am 29.11.2010 17:22, schrieb Virasana: > > I have an interfac, IEntityMonitor, which defines, amongst other > things, a number of events. > I mock it and set it up as follows, and pass the mock to another > class. > The class does nothing to the mock. > However, when I run the code, I get the following error: > > *** IEntityMonitor.add_DataCleared(System.EventHandler); Expected #1, > Actual #0. *** > > Question: Why is the additinal, 'magical' expectation being set up? > Question : How do I remove the expectation?
signature.asc
Description: OpenPGP digital signature
