Castle.MicroKernel.Tests.Bugs.IoC_95.AddingComponentToRootKernelWhenChildKernelHasStartableFacility C# (CSharp) Method

AddingComponentToRootKernelWhenChildKernelHasStartableFacility() private method

		public void AddingComponentToRootKernelWhenChildKernelHasStartableFacility()
		{
			IKernel kernel = new DefaultKernel();
			IKernel childKernel = new DefaultKernel();
			kernel.AddChildKernel(childKernel);
			childKernel.AddFacility(new StartableFacility());
			kernel.Register(Component.For(typeof (A)).Named("string")); // exception here
		}
	}