public void CloneScopeInfoTest() { InjectionKernelManager manager = new InjectionKernelManager(null, DependencyInjectionContainer.CompareExportStrategies, new BlackList()); InjectionKernel injectionKernel = new InjectionKernel(manager, new FauxInjectionScope(), null, null, DependencyInjectionContainer.CompareExportStrategies); IInjectionScope cloneScope = null; IInjectionScope requestScope = null; injectionKernel.Configure( ioc => { ioc.ExportInstance((scope, context) => { Assert.True(ReferenceEquals(requestScope, context.RequestingScope), "Requesting scope incorrect"); return new BasicService(); }).As<IBasicService>(); ioc.Export<ImportConstructorService>().As<IImportConstructorService>(); }); cloneScope = injectionKernel.Clone(null, null, null); requestScope = cloneScope.CreateChildScope(); IImportConstructorService importPropertyService = requestScope.Locate<IImportConstructorService>(); Assert.NotNull(importPropertyService); }