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); }
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); }