ModelBuilder.UnitTests.BuildStrategyCompilerExtensionsTests.AddWithValueGeneratorThrowsExceptionWithNullCompilerTest C# (CSharp) Метод

AddWithValueGeneratorThrowsExceptionWithNullCompilerTest() приватный Метод

private AddWithValueGeneratorThrowsExceptionWithNullCompilerTest ( ) : void
Результат void
        public void AddWithValueGeneratorThrowsExceptionWithNullCompilerTest()
        {
            var rule = new StringValueGenerator();

            IBuildStrategyCompiler target = null;

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

            action.ShouldThrow<ArgumentNullException>();
        }
BuildStrategyCompilerExtensionsTests