Suppose I have something like this:
IStep s1 = MockRepository.GenerateMock<IStep>();
IStep s2 = MockRepository.GenerateMock<IStep>();

s1.Expect(s => s.Execute());
s2.Expect(s => s.Execute());

Phase p = new Phase();
p.Add(s1);
p.Add(s2);

p.Run();


Somewhere in the Run method it will execute the steps. What I would like to
do is guarantee that the steps are executing in the correct order but I'm
not sure how to do that. If I swap the order that the expectations are setup
it still seems to pass the test. Is there an easy way to either, intercept
the call to Execute() or specify that ordering is important for the
expectations?

-- 
Justin Chase
http://www.justnbusiness.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to