public void DEF_verifyDoesNotInstantiate()
		{
			IMutablePicoContainer picoContainer = new DefaultPicoContainer(CreateDefaultComponentAdapterFactory());
			IComponentAdapter componentAdapter = prepDEF_verifyDoesNotInstantiate(picoContainer);
			Assert.AreSame(GetComponentAdapterType(), componentAdapter.GetType());
			IComponentAdapter notInstantiatablecomponentAdapter = new NotInstantiatableComponentAdapter(componentAdapter);
			IPicoContainer wrappedPicoContainer = WrapComponentInstances(typeof (NotInstantiatableComponentAdapter), picoContainer, null);
			notInstantiatablecomponentAdapter.Verify(wrappedPicoContainer);
		}
예제 #2
0
        public void DEF_verifyDoesNotInstantiate()
        {
            IMutablePicoContainer picoContainer    = new DefaultPicoContainer(CreateDefaultComponentAdapterFactory());
            IComponentAdapter     componentAdapter = prepDEF_verifyDoesNotInstantiate(picoContainer);

            Assert.AreSame(GetComponentAdapterType(), componentAdapter.GetType());
            IComponentAdapter notInstantiatablecomponentAdapter =
                new NotInstantiatableComponentAdapter(componentAdapter);
            IPicoContainer wrappedPicoContainer =
                WrapComponentInstances(typeof(NotInstantiatableComponentAdapter), picoContainer, null);

            notInstantiatablecomponentAdapter.Verify(wrappedPicoContainer);
        }