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

AddWithIgnoreRuleThrowsExceptionWithNullRuleTest() private method

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

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

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests