title: Rhino Mocks AssertWasCalled (multiple times) on property getter using AAA
body: <p>I have a mocked object that is passed as a constructor argument to another object.</p>
  
  <p>How can I test that a mocked object's property has been called? This is code I am using currently:</p>
  
  <pre><code>INewContactAttributes newContact = MockRepository.GenerateMock&lt;INewContactAttributes&gt;();
  newContact.Stub(x =&gt; x.Forenames).Return("One Two Three");
  someobject.ConsumeContact(newContact);
  newContact.AssertWasCalled(x =&gt; { var dummy = x.Forenames; });
  </code></pre>
  
  <p>This works except when within the "someobject" the getter on Forenames property is used multiple times. That's when I get "Rhino.Mocks.Exceptions.ExpectationViolationException: INewContactAttributes.get_Forenames(); Expected #1, Actual #2.."</p>
  
  <p>Simply using </p>
  
  <pre><code>newContact.AssertWasCalled(x =&gt; { var dummy = x.Forenames; }, options =&gt; options.Repeat.Any());
  </code></pre>
  
  <p>does not work and gives the error below:</p>
  
  <p>"The expectation was removed from the waiting expectations list, did you call Repeat.Any() ? This is not supported in AssertWasCalled()."</p>
  
  <p>So how do I cater for the multiple calls?</p>