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

AddWithValueGeneratorThrowsExceptionWithNullCompilerTest() private method

        public void AddWithValueGeneratorThrowsExceptionWithNullCompilerTest()
        {
            var rule = new StringValueGenerator();

            IBuildStrategyCompiler target = null;

            Action action = () => target.Add(rule);

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests