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

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

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

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

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