ModelBuilder.UnitTests.BuildStrategyCompilerExtensionsTests.AddWithCreationRuleThrowsExceptionWithNullCompilerTest C# (CSharp) Method

AddWithCreationRuleThrowsExceptionWithNullCompilerTest() private method

        public void AddWithCreationRuleThrowsExceptionWithNullCompilerTest()
        {
            var rule = new CreationRule(typeof(Person), "FirstName", Environment.TickCount, (object) null);

            IBuildStrategyCompiler target = null;

            Action action = () => target.Add(rule);

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests