Exemplo n.º 1
0
        public void OnRemoveSubscriber_RemovesSubscriber()
        {
            void ActionCallback(TestEvent testEvent)
            {
            }

            var eventAction = new EventAction <TestEvent>();

            eventAction.AddSubscriber(ActionCallback);
            eventAction.RemoveSubscriber(ActionCallback);

            Assert.That(!eventAction.HasSubscriber(ActionCallback));
        }