public void WeakEventManager_AddWeakEventListener_Property_FiresEvent_Test()
        {
            var publisher  = new TestPublisher();
            var subscriber = new TestSubscriber();

            subscriber.StartProperty(publisher);

            publisher.FireProperty();

            Assert.AreEqual(1, subscriber.Invocations);
        }
        public void WeakEventManager_RemoveWeakEventListener_CustomDelegateEventNoLongerFires_Test()
        {
            var publisher  = new TestPublisher();
            var subscriber = new TestSubscriber(publisher);

            subscriber.StartProperty(publisher);

            subscriber.Stop();
            publisher.FireProperty();

            Assert.AreEqual(0, subscriber.Invocations);
        }