When you say
"I wouldn't advice using this too much"
Do you mean in general that sequence returns are bad?
I understand that they are not ideal but they do play a part. That is
why I was using a clock as an example. Becuase in a real world
situation that method would not return the same value everytime it is
called. If you have a timed base problem to solve then one would want
control over simulating the change of time. Or a random number
generator but you want to control the output nubmers to be in a
particular sequence.
If one was not to use this concept then what would they use? Or how
would they mock a sequence of returned values?
I'm also concerned with the implmentation in my unit test and not
wanting too much complexity or bloat. Is what Brian proposing give us
a simple declaration like .Return(x, y, z)? That proposal sounds broad
and trying to solve two problems. One of which is sequencing and
making sure methods are called in a proper order. Making sure method A
is called before method B. And combining that with a .Return that
returns a sequence of numbers for the a single expectation with a
single method/args pattern.
> > - Guy- Hide quoted text -
>
> - Show quoted text -