DateTime aTime = DateTime.MinValue;DateTime bTime = DateTime.MinValue;
using ( repository.Record() )
{
using (_repository.Ordered)
{
methodA();
LastCall.WhenCalled( invocation => aTime =
DateTime.Now);
methodB();
LastCall.WhenCalled( invocation => bTime =
DateTime.Now);
}
}
On Tue, Oct 7, 2008 at 11:02 PM, frank <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I would like to verify that two methods are called in an ordered
> fashion and that they are called
> after a known timeout. Precisely:
>
>
> Start of the test a time ==0
>
> .... a time out of 10 seconds
>
> methodA() is called at time == 10 s
>
> .... a time out of 15 seconds
>
> methodB() is called at time == 25 seconds
>
>
> About the ordered fashion, I know that I must use Ordered in the
> record block.
>
> [....]
> using ( repository.Record() )
> {
> using (_repository.Ordered)
> {
> methodA();
> LastCall.Constraints .....
>
> methodB();
> LastCall.Constraints .....
> }
> }
>
> [....]
>
> But how to indicate the two timeouts and verify them? And where
> (record block, playback block)?
> I use Rhino Mocks 3.5.
>
> !Gracias!
>
> Frank the hippo
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---