public void test_eventdispatch_dispatch() { EventDispatch dispatch = new EventDispatch(); MockEventHandler_Test00 handler = new MockEventHandler_Test00(); dispatch.subscribe(handler); dispatch.subscribe(new MockEventHandler_Test01()); dispatch.subscribe(new MockEventHandler_Test02()); MockSender s = new MockSender(); Assert.IsTrue(dispatch.dispatch(new MockEvent_Test00(s))); dispatch.unsubscribe(handler); Assert.IsFalse(dispatch.dispatch(new MockEvent_Test00(s))); }