public void ExceptionHandlingWithExtensionHandlingException() { Publisher p = new Publisher(); SubscriberThrowingException s = new SubscriberThrowingException(); var exceptionHandlingExtension = new ExceptionHandlingExtension(); this.testee.AddExtension(exceptionHandlingExtension); this.testee.Register(p); this.testee.Register(s); p.CallSimpleEvent(); exceptionHandlingExtension.HandledException .Should().BeOfType <SubscriberThrowingException.TestException>(); }
public void ExceptionHandlingWithExtensionHandlingException() { Publisher p = new Publisher(); SubscriberThrowingException s = new SubscriberThrowingException(); var exceptionHandlingExtension = new ExceptionHandlingExtension(); this.testee.AddExtension(exceptionHandlingExtension); this.testee.Register(p); this.testee.Register(s); p.CallSimpleEvent(); exceptionHandlingExtension.HandledException .Should().BeOfType<SubscriberThrowingException.TestException>(); }