title: How to mock a property with no setter?
body: <p>I am trying to Mock an Interface.  The property i want to set "MockThisProperty" does not have a setter.  I cannot change the Interface source.  The error i get is </p>
  
  <p>Previous method 'IThirdPartyInterface.get_MockThisProperty();' requires a return value or an exception to throw.</p>
  
  <p>I've tried DynamicMock, Strictmock, partial mock, etc.  </p>
  
  <p>When I try  SetupResult.For(thirdParty.MockThisProperty = mockedValue) won't compile because there is no setter. </p>
  
  <p>using the latest Rhino mocks with mstest</p>
  
  <p>At a loss, here is the code...</p>
  
  <pre><code>        var stuff = _Mockery.Stub&lt;Hashtable&gt;();
          matchItem.Add(key, "Test"); 
  
          var thirdParty = _Mockery.Stub&lt;IThirdPartyInterface&gt;();
          SetupResult.For(thirdParty.MockThisProperty).Return(stuff);
  
          _Mockery.BackToRecordAll();
  
  
         //more code
  
          _Mockery.ReplayAll();
  
          Assert.IsTrue(MethodToTest(thirdParty));
  
          _Mockery.VerifyAll();
  </code></pre>