title: Rhino - Mocking classes and not overriding virtual methods
body: <p>If I'm mocking a class, like below, is there any way I can get the mock to <em>not</em> override a virtual method?  I know I can simply remove the virtual modifier, but I actually want to stub out behavior for this method later.</p>
  
  <p>In other words, how can I get this test to pass, other than removing the virtual modifier:</p>
  
  <pre><code>namespace Sandbox {
      public class classToMock {
         public int IntProperty { get; set; }
  
         public virtual void DoIt() {
             IntProperty = 1;
         }
  }
  
  public class Foo {
      static void Main(string[] args) {
          classToMock c = MockRepository.GenerateMock&lt;classToMock&gt;();
          c.DoIt();
  
          Assert.AreEqual(1, c.IntProperty);
          Console.WriteLine("Pass");
      }
  }
  </code></pre>
  
  <p>}</p>