public void Third_level_children_are_not_null_max_depth_3()
{
var config = new MapperConfiguration(cfg => cfg.CreateMap<Source, Destination>().MaxDepth(3));
var destination = config.CreateMapper().Map<Source, Destination>(_source);
foreach (var child in destination.Children)
{
child.Children.ShouldNotBeNull();
foreach (var subChild in child.Children)
{
3.ShouldEqual(subChild.Level);
subChild.Children.ShouldNotBeNull();
child.ShouldEqual(subChild.Parent);
}
}
}
}