var methodCalled = false;
var foo = new Foo();
f.Bar(() => methodCalled = true);
Assert.IsTrue(methodCalled);
If bar never calls the delegate passed to it, methodCalled will still
be false and your test will fail.
---
Patrick Steele
http://weblogs.asp.net/psteele
> --
> 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 rhino...@googlegroups.com.
> To unsubscribe from this group, send email to
> rhinomocks+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rhinomocks?hl=en.