public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { var bootstrapper = new DefaultCastleWindsorBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(ActivationException))); }
public void RegisterFrameworkExceptionTypesShouldRegisterResolutionFailedException() { var bootstrapper = new DefaultCastleWindsorBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(ComponentResolutionException))); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(ComponentNotFoundException))); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(ComponentRegistrationException))); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(CircularDependencyException))); }