ModelBuilder.UnitTests.BuildStrategyCompilerExtensionsTests.AddWithCreationRuleThrowsExceptionWithNullCompilerTest C# (CSharp) Méthode

AddWithCreationRuleThrowsExceptionWithNullCompilerTest() private méthode

private AddWithCreationRuleThrowsExceptionWithNullCompilerTest ( ) : void
Résultat void
        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