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

AddIgnoreRuleWithExpressionThrowsExceptionWithNullCompilerTest() private method

        public void AddIgnoreRuleWithExpressionThrowsExceptionWithNullCompilerTest()
        {
            BuildStrategyCompiler target = null;

            Action action = () => target.AddIgnoreRule<Person>(x => x.FirstName);

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests