asmock is a dynamic rigging system and supports triggering events as a response to the called method. Despite the presence of a beta monitor, it was used in several production applications (including inside a continuous integration server).
You would use it for your purposes like this:
var mock : ISometInterface = ISometInterface(mockFactory.createStrict(ISometInterface));
SetupResult.forEventDispatcher(mock);
SetupResult.forCall(mock.someMethod())
.dispatchEvent(new Event());
mockFactory.replayAll();
mock.someMethod();
- asmock ( - ), sourceforge .
, -, asmock, mockito ( java ).