public void RemoveDynamicSubscriber() { var submgr = new SubscriptionsManager(); submgr.AddSubscriber <TestDynamicEventHandler>("Test"); submgr.RemoveSubscriber <TestDynamicEventHandler>("Test"); Assert.False(submgr.HasSubscribers("Test")); }
public void RemoveTypedSubscriber() { var submgr = new SubscriptionsManager(); submgr.AddSubscriber <TestEvent, TestEventHandler>(); submgr.RemoveSubscriber <TestEvent, TestEventHandler>(); Assert.False(submgr.HasSubscribers <TestEvent>()); }
public void RemoveDynamicSubscriber_Null() { var submgr = new SubscriptionsManager(); Assert.Throws <ArgumentNullException>(() => submgr.RemoveSubscriber <TestDynamicEventHandler>(null)); }