ModelBuilder.UnitTests.BuildStrategyCompilerExtensionsTests.AddIgnoreRuleWithExpressionThrowsExceptionWithNullCompilerTest C# (CSharp) Метод

AddIgnoreRuleWithExpressionThrowsExceptionWithNullCompilerTest() приватный Метод

private AddIgnoreRuleWithExpressionThrowsExceptionWithNullCompilerTest ( ) : void
Результат void
        public void AddIgnoreRuleWithExpressionThrowsExceptionWithNullCompilerTest()
        {
            BuildStrategyCompiler target = null;

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

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests