title: How can I use Rhino Mocks to inspect what values were passed to a method
body: <p>I'm new to mocking, and I'm having a hard time solving an issue with UnitTesting.</p>
  
  <p>Say I have this code:</p>
  
  <pre><code>public class myClass{
  
      private IDoStuff _doer;
  
      public myClass(IDoStuff doer){
          _doer = doer;
      }
  
      public void Go(SomeClass object){
  
          //do some crazy stuff to the object
  
          _doer.DoStuff(object) //this method is  void too
      }
  }
  </code></pre>
  
  <p>Ok, so I want to UNIT test the Go method. I don't care what the _doer object does to the object once is gets it.</p>
  
  <p>HOWEVER, I do want to inspect what the _doer object has received.</p>
  
  <p>in PSEUDO code I want to achieve this:</p>
  
  <pre><code>[Test]
  public void MyTest()
  {
      IDoStuff doer = Mocker.Mock&lt;IDoStuff&gt;();
      Guid id = Guid.NewGuid();
  
      //test Go method
      new MyClass(doer).Go(new SomeClass(){id = id});
  
      Assert.AreEqual(id,MockingFramework.Method(DoStuff).GetReceived&lt;SomeClass&gt;().id);
  }
  </code></pre>
  
  <p>Is this possible using Rhino, and if so, how do I achieve it?</p>
  
  <p>cheers</p>