ModelBuilder.UnitTests.BuildStrategyTests.ThrowsExceptionWhenCreatedWithNullIgnoreRulesTest C# (CSharp) Method

ThrowsExceptionWhenCreatedWithNullIgnoreRulesTest() private method

private ThrowsExceptionWhenCreatedWithNullIgnoreRulesTest ( ) : void
return void
        public void ThrowsExceptionWhenCreatedWithNullIgnoreRulesTest()
        {
            var constructorResolver = Substitute.For<IConstructorResolver>();
            var creationRules = new List<CreationRule>();
            var typeCreators = new List<ITypeCreator>();
            var valueGenerators = new List<IValueGenerator>();
            var executeOrderRules = new List<ExecuteOrderRule>();
            var postBuildActions = new List<IPostBuildAction>();

            Action action =
                () =>
                    new BuildStrategy(
                        constructorResolver,
                        creationRules,
                        typeCreators,
                        valueGenerators,
                        null,
                        executeOrderRules,
                        postBuildActions);

            action.ShouldThrow<ArgumentNullException>();
        }