public void InjectingAnArrayTypeSucceedsIfItWasRegistered()
        {
            IUnityContainer container = new UnityContainer();

            CollectionSupportTestClass[] array = new CollectionSupportTestClass[0];
            container.RegisterInstance <CollectionSupportTestClass[]>(array);

            CollectionSupportTestClassWithDependency resolved = container.Resolve <CollectionSupportTestClassWithDependency>();

            Assert.AreSame(array, resolved.Dependency);
        }
        public void InjectingAnArrayTypeSucceedsIfItWasNotRegistered()
        {
            IUnityContainer container = new UnityContainer();

            CollectionSupportTestClassWithDependency resolved = container.Resolve <CollectionSupportTestClassWithDependency>();
        }