title: With Rhino Mocks should BackToRecord() also clear the count of the number of times a method was called?
body: <p>From numerous other questions on SO it is said that in order to reset the count of the number of times a method call was made on a mock object you can call BackToRecord() and then Replay().</p>
  
  <p>However this does not work for me. It will reset the stubbed values but not the method call count.</p>
  
  <p>So extending an example from a related question...</p>
  
  <pre><code>public interface IFoo { string GetBar(); }
      [TestMethod]
      public void TestRhino()
      {
          var fi = MockRepository.GenerateStub&lt;IFoo&gt;();
          fi.Stub(x =&gt; x.GetBar()).Return("A");
          Assert.AreEqual("A", fi.GetBar());
          fi.AssertWasCalled(x=&gt;x.GetBar(), x=&gt;x.Repeat.Once());
  
          // Switch to record to clear behaviour and then back to replay
          fi.BackToRecord(BackToRecordOptions.All);
          fi.Replay();
  
          fi.Stub(x =&gt; x.GetBar()).Return("B");
          Assert.AreEqual("B", fi.GetBar());
          fi.AssertWasCalled(x =&gt; x.GetBar(), x =&gt; x.Repeat.Once());
      }
  </code></pre>
  
  <p>This fails on the last line with 'Expected #1, actual #2'.</p>
  
  <p>Am I missing the point or does it simply not work for the method count? Is there anyway to achieve this without creating a new mock?</p>
  
  <p>For reasons that I won't go into I am not able to set up expectations before making the call to GetBar().</p>