I have a test like this:
[TestCase("~/page/myaction")]
public void Page_With_Custom_Action(string pat
Now you can use SetupSequence. See this post.
var mock = new Mock();
mock.SetupSequence(f => f.GetCount())
.Returns(3) // will be returned on 1st invocation
.Returns(2) // will be returned on 2nd invocation
.Returns(1) // will be returned on 3rd invocation
.Returns(0) // will be returned on 4th invocation
.Throws(new InvalidOperationException()); // will be thrown on 5th invocation