Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rhino Mocks Repeatとは何ですか?
Repeat.Any(); Repeat.Once();
それはどういう意味で、どのように機能しますか?
これはExpect、流暢な宣言の一部として構成とともに使用されます。それが何を意味するかについて:それは前のイベントがその回数発生すると予想されることを意味します。
Expect
例:それは正確に2回呼び出されるとExpect.Call(someMethod()).Repeat.Twice()言います。someMethod()
Expect.Call(someMethod()).Repeat.Twice()
someMethod()