var mock = new Mock(); mock.SetupSequence(x => x.MyMethod()).Returns(0).Returns(1).Returns(2). Func func = () => mock.Object);