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

AddWithValueGeneratorThrowsExceptionWithNullRuleTest() private method

        public void AddWithValueGeneratorThrowsExceptionWithNullRuleTest()
        {
            var target = Substitute.For<IBuildStrategyCompiler>();

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

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests