title: Stubbing a dictionary in Rhino.Mocks
body: <p>I have a read-only dictionary on a dependency that I'd like to be able to stub with return values, and check that assignments to it have happened.</p>
  
  <p>I was hoping that Rhino.Mocks would create an empty dictionary for me by default, but unfortunately it doesn't. Since it is read-only, I can't create a new dictionary and assign it to that property.</p>
  
  <p>I was hoping to be able to stub it instead. From what I understand, the C# syntax for this would looking something like this:</p>
  
  <pre><code>m.Stub(x =&gt; x.myProperty).Return("abc");
  </code></pre>
  
  <p>So I was hoping that this would work for VB:</p>
  
  <pre><code>m.Stub(sub(x) x.myProperty).Return("abc");
  </code></pre>
  
  <p>But it doesn't (compiler error). Any ideas on how to accomplish this? I'm open to the Expect/Verify syntax if it can accomplish this...</p>