public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { var bootstrapper = new DefaultAutofacBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(ActivationException))); }
public void RegisterFrameworkExceptionTypesShouldRegisterResolutionFailedException() { var bootstrapper = new DefaultAutofacBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(global::Autofac.Core.DependencyResolutionException))); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(ComponentNotRegisteredException))); }