-1

What is the use of lastcall method in rhino mock? Can you please explain with the help of example?

razlebe
  • 7,134
  • 6
  • 42
  • 57
user132
  • 39
  • 4

1 Answers1

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