ModelBuilder.UnitTests.DefaultBuildLogTests.CreatePropertyValidatesPropertysTest C# (CSharp) Method

CreatePropertyValidatesPropertysTest() private method

private CreatePropertyValidatesPropertysTest ( Type propertyType, string propertyName, bool includeContext ) : void
propertyType System.Type
propertyName string
includeContext bool
return void
        public void CreatePropertyValidatesPropertysTest(Type propertyType, string propertyName, bool includeContext)
        {
            Person context = null;

            if (includeContext)
            {
                context = new Person();
            }

            var target = new DefaultBuildLog();

            Action action = () => target.CreateProperty(propertyType, propertyName, context);

            action.ShouldThrow<ArgumentNullException>();
        }