title: RhinoMocks: Correct way to mock property getter
body: <p>I'm new to RhinoMocks, and trying to get a grasp on the syntax in addition to what is happening under the hood.</p>
  
  <p>I have a user object, we'll call it User, which has a property called IsAdministrator. The value for IsAdministrator is evaluated via another class that checks the User's security permissions, and returns either true or false based on those permissions. I'm trying to mock this User class, and fake the return value for IsAdministrator in order to isolate some Unit Tests.</p>
  
  <p>This is what I'm doing so far:</p>
  
  <pre><code>public void CreateSomethingIfUserHasAdminPermissions()
  {
      User user = _mocks.StrictMock&lt;User&gt;();
      SetupResult.For(user.IsAdministrator).Return(true);
  
      // do something with my User object
  } 
  </code></pre>
  
  <p>Now, I'm expecting that Rhino is going to 'fake' the call to the property getter, and just return true to me. Is this incorrect? Currently I'm getting an exception because of dependencies in the IsAdministrator property.</p>
  
  <p>Can someone explain how I can achieve my goal here?</p>