I have a mocked object that is passed as a constructor argument to another object.
How can I test that a mocked object\'s property has been called? This is code I am
newContact.AssertWasCalled(x => { var dummy = x.Forenames; }, options => options.Repeat.AtLeastOnce());
Repeat.Any does not work with AssertWasCalled because 0 counts as any... so if it WASN'T called, the AsserWasCalled would return TRUE even if it wasn't called.
Repeat.Any
AssertWasCalled
AsserWasCalled