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
I agree with chris answer
newContact.AssertWasCalled(x => { var dummy = x.Forenames; }, options => options.Repeat.AtLeastOnce());
Additionally If you know exactly how many times the property would be called you can do
newContact.AssertWasCalled(x => { var dummy = x.Forenames; }, options => options.Repeat.Times(n));
where n is an int.