What is the use of lastcall
method in rhino mock?
Can you please explain with the help of example?
Asked
Active
Viewed 359 times
-1
1 Answers
1
LastCall allows you to do something additional to the last call that was added.
Expect.Call(delegate{ mockObject.DoSomething("foo"); }).IgnoreArguments();
is that same as
mockObject.DoSomething("foo");
LastCall.IgnoreArguments();
Hope this helps.

stuartf
- 648
- 4
- 8