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

AddWithTypeCreatorThrowsExceptionWithNullRuleTest() private method

private AddWithTypeCreatorThrowsExceptionWithNullRuleTest ( ) : void
return void
        public void AddWithTypeCreatorThrowsExceptionWithNullRuleTest()
        {
            var target = Substitute.For<IBuildStrategyCompiler>();

            Action action = () => target.Add((ITypeCreator) null);

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests