Rhino mocks probably does have some internal list to track the names of the *virtual* methods it intercepted on the mock objects it created. But that wouldn't help you with the Graphics class since:
1. You aren't mocking it (or are you wrapping it in an interface?) 2. I checked a half-a-dozen of the methods on the Graphics class and they aren't virtual -- meaning Rhino.Mocks can't intercept/track their invocation. Are you looking to make sure specific graphic calls are made with specific parameters? --- Patrick Steele http://weblogs.asp.net/psteele On Tue, Aug 7, 2012 at 10:37 AM, Mirko Seifert <[email protected]> wrote: > I want to test a custom UI control, more specifically its invokations on the > Graphics object. The are many such invocations and I don't want to specify > all of them. Rather, I'd like to iterate over a list of all invokations and > check whether my assertions are met. > > The invocations are recorded anyway, right? Rhino mock needs them to check > the assertion. Can I access the list of recorded invocations or can I add a > custom handler that records them? I'm willing to modify the source code of > the Rhino Mock library if this is needed. > > Cheers, > > Mirko > > > Am Dienstag, 7. August 2012 15:58:52 UTC+2 schrieb Patrick Steele: >> >> Not that I know of. Why do you want this? >> >> --- >> Patrick Steele >> http://weblogs.asp.net/psteele >> >> >> On Tue, Aug 7, 2012 at 5:16 AM, Mirko Seifert wrote: >> > Hi, >> > >> > is there a way to get a list of all methods that were invoked on a >> > mocked >> > object? >> > >> > I've tried using GetArgumentsForCallsMadeOn() but this required to >> > specify >> > the methods I'm interested in. Rather, I want all calls. >> > >> > Thanks in advance, >> > >> > Mirko >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Rhino.Mocks" group. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msg/rhinomocks/-/60O6efnZX2cJ. >> > 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. > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rhinomocks/-/t9uWkOuOd_cJ. > > 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. -- 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.
