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

AddIgnoreRuleWithExpressionThrowsExceptionWithNullExpressionTest() private method

        public void AddIgnoreRuleWithExpressionThrowsExceptionWithNullExpressionTest()
        {
            var target = new BuildStrategyCompiler();

            Action action = () => target.AddIgnoreRule((Expression<Func<Person, object>>) null);

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests