public void PopulateInstanceThrowsExceptionWithNullInstance()
        {
            var executeStrategy = Substitute.For <IExecuteStrategy>();

            var sut = new ArrayTypeCreatorWrapper();

            Action action = () => sut.RunPopulateInstance(null !, executeStrategy);

            action.Should().Throw <ArgumentNullException>();
        }
        public void PopulateInstanceThrowsExceptionWithNullExecuteStrategy()
        {
            var value = new List <string>();

            var sut = new ArrayTypeCreatorWrapper();

            Action action = () => sut.RunPopulateInstance(value, null !);

            action.Should().Throw <ArgumentNullException>();
        }
        public void CreateChildItemThrowsExceptionWithNullExecuteStrategy()
        {
            var person = new Person();

            var sut = new ArrayTypeCreatorWrapper();

            Action action = () => sut.CreateItem(typeof(Person[]), null !, person);

            action.Should().Throw <ArgumentNullException>();
        }
        public void CreateChildItemThrowsExceptionWithNullExecuteStrategyTest()
        {
            var person = new Person();

            var target = new ArrayTypeCreatorWrapper();

            Action action = () => target.CreateItem(typeof(Person[]), null, person);

            action.ShouldThrow<ArgumentNullException>();
        }
        public void DisablesAutoPopulateTest()
        {
            var target = new ArrayTypeCreatorWrapper();

            target.AutoPopulate.Should().BeFalse();
        }
        public void DisablesAutoConstructorDetectionTest()
        {
            var target = new ArrayTypeCreatorWrapper();

            target.AutoDetectConstructor.Should().BeFalse();
        }
        public void DisablesAutoPopulate()
        {
            var sut = new ArrayTypeCreatorWrapper();

            sut.AutoPopulate.Should().BeFalse();
        }