How does one go about testing that a delegate was passed to a method?  I 
have a class with a method:

class Worker {

    public void MainLoop() {
    }
}

And another class

class Foo {

    public void Bar( Action methodToRunInLoop) {
      ...
    }
}

and some code that does this

Worker w = new Worker();
Foo f = new Foo();
f.Bar(w.MainLoop);

What I want to do is to verify that "f.Bar(w.MainLoop);" was called.

Thanks.

-- 
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/-/GdRWRi8e948J.
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.

Reply via email to