views:

1089

answers:

1

What is Rhino Mocks Repeat ?

Repeat.Any();

Repeat.Once();

What does it mean and how it works ?

+10  A: 

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

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

Matthew Brubaker