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

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

            Assert.AreEqual(0, resolved.Dependency.Length);
        }
        public void ConstructingAnDependencyArrayWithRegisteredElementsSucceeds()
        {
            IUnityContainer container = new UnityContainer();

            container.RegisterType <TestClass>("Element1", new ContainerControlledLifetimeManager());
            container.RegisterType <TestClass>("Element2", new ContainerControlledLifetimeManager());
            container.RegisterType <TestClass>("Element3", new ContainerControlledLifetimeManager());

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

            Assert.AreEqual(3, resolved.Dependency.Length);
        }