Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Rhino Mocks Repeat?

What is Rhino Mocks Repeat ?

Repeat.Any();

Repeat.Once();

What does it mean and how it works ?

like image 503
Yoann. B Avatar asked Jan 21 '09 18:01

Yoann. B


1 Answers

It is used with the Expect construct as part of a fluent declaration. As for what it means: it means that the previous event is expected to occur that many times.

For instance: Expect.Call(someMethod()).Repeat.Twice() says that someMethod() will be called exactly two times.

like image 165
Matthew Brubaker Avatar answered Oct 19 '22 08:10

Matthew Brubaker