public void VerifyingThatEventWasAttached()
        {
            IWithEvent events = MockRepository.Mock <IWithEvent>();

            events.ExpectEvent(x => x.Load += null)
            .IgnoreArguments();

            EventConsumer consumerMock = new EventConsumer(events);

            //Next line invokes Load event.
            events.Raise(x => x.Load += null, EventArgs.Empty);

            Assert.True(consumerMock.OnLoadCalled);
            events.VerifyAllExpectations();
        }