title: How can I check a method is called with a specific parameter on a mock object?
body: <p>Can you help to achieve the goal I mentioned in the commented block below to complete sample unit test?</p>
  
  <p>Idea is how to check on a mock object, if one of its methods is called with a type instance that has a particular property is set to expected value/</p>
  
  <pre><code>private IMyObject stub = MockRepository.GenerateMock&lt;IMyObject&gt;();
  [TestMethod]
  public void MakeMyJob_RecievesValidData_CallsRenderWithCorrectParameter()
  {
      SomeUtility.MakeMyJob(5,10,stub);
  
      stub.AsswertWasCalled(s=&gt;s.Render(Arg&lt;IViewModel&gt;.Is. //What next?
                                              // In order to check if Render is called
                                              // with a IViewModel instance 
                                              // whoose Person.Name property is "Peter"
  
  }
  </code></pre>