Hi, actually, the Execute(...) method is located in the Module class, that is parent for the Collector class. From the design point of view it is sufficient for Execute(...) method to be protected. But I made it public only for test purpose. So I can test, if the tryExecuteAction is called within it for Module class. Hope, I did not confuse you :) So could you please make some recommendations? Maybe I am doing something wrong and should not test some methods.
Thanks in advance, MuxMux. On 21 дек, 12:49, Tapio Kulmala <[email protected]> wrote: > Hi > > Works on my machine :-) > > I don't know what you really are trying to do. For example Why is the > Execute method public? Is somebody else using it? If there is no reason for > it being public, I'd try testing that the actual TryExecute is called and > that the ExecuteWithAttempts works as planned. The execute-method is just > internal plumbing of the Collector and if you start testing internal > behavior, your test will be very fragile. > > Tapio Kulmala -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
