AutoMapper.UnitTests.MaxDepthTests.Second_level_children_are_null_with_max_depth_1 C# (CSharp) Method

Second_level_children_are_null_with_max_depth_1() private method

private Second_level_children_are_null_with_max_depth_1 ( ) : void
return void
        public void Second_level_children_are_null_with_max_depth_1()
        {
            var config = new MapperConfiguration(cfg => cfg.CreateMap<Source, Destination>().MaxDepth(1));
            var destination = config.CreateMapper().Map<Source, Destination>(_source);
            foreach (var child in destination.Children)
            {
                child.ShouldBeNull();
            }
        }