title: SetupSequence in Moq
body: <p>I want a mock that returns <code>0</code> the first time, then returns <code>1</code> anytime the method is called thereafter. The problem is that if the method is called 4 times, I have to write:</p>
  <pre><code>mock.SetupSequence(x =&gt; x.GetNumber())
      .Returns(0)
      .Returns(1)
      .Returns(1)
      .Returns(1);
  </code></pre>
  <p>Otherwise, the method returns null.</p>
  <p>Is there any way to write that, after the initial call, the method returns <code>1</code>?</p>