public void Forward_Canceled() { var eventManager = Mock.Of <IEventManager>(); var evt = new TestEvent(); var newEvt = new TestEvent(); var log = Mock.Of <ILogger>(); Mock.Get(eventManager) .Setup(em => em.Raise(newEvt, log)) .Callback <TestEvent, ILogger>((evt, log) => evt.Cancel()); eventManager.Forward(evt, newEvt, log); Assert.True(evt.IsCanceled); Mock.Get(eventManager).VerifyAll(); }