I am arranging call for a method in a unit test like below
container.Arrange(p=> p.doSomething(Arg.AnyString, Arg.AnyString)).ReturnsMany(1, 2);
Is 1 and 2 will be returned in sequence always or InSequence() chain is required?
Will ReturnsMany returns values in sequence or explicit InSequence is required?
To save a sequence,
InSequence()method call is not required. To make sure you can see the source code:But remember about
behaviorparameter, by default it is equal toAfterLastValue.KeepReturningLastValue.