public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { var bootstrapper = new DefaultStructureMapBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(Microsoft.Practices.ServiceLocation.ActivationException))); }
public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { var bootstrapper = new DefaultStructureMapBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.True(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(ActivationException))); }
public void RegisterFrameworkExceptionTypesShouldRegisterResolutionFailedException() { var bootstrapper = new DefaultStructureMapBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(StructureMapBuildPlanException))); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(StructureMapConfigurationException))); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(StructureMapException))); }