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

AddWithIgnoreRuleThrowsExceptionWithNullCompilerTest() private method

        public void AddWithIgnoreRuleThrowsExceptionWithNullCompilerTest()
        {
            var rule = new IgnoreRule(typeof(Person), "FirstName");

            IBuildStrategyCompiler target = null;

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

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests