public void PassNormalToCustomEventArgs() { NormalPublisher p = new NormalPublisher(); CustomSubscriber s = new CustomSubscriber(); this.testee.Register(p); Assert.Throws<EventTopicException>( () => this.testee.Register(s)); }
public void PassNormalToCustomEventArgsReversedRegistration() { NormalPublisher p = new NormalPublisher(); CustomSubscriber s = new CustomSubscriber(); this.testee.Register(s); Assert.Throws <EventTopicException>( () => this.testee.Register(p)); }
public void MatchReversedRegistration() { NormalPublisher p = new NormalPublisher(); NormalSubscriber s = new NormalSubscriber(); this.testee.Register(s); this.testee.Register(p); p.Fire(); }