Exemple #1
0
        public void Should_Support_Null_Propagation()
        {
            var config = new TypeAdapterConfig();

            config.NewConfig <Src, Dest>()
            .Map(dest => dest.Start, src => src.Start, src => src.HasStart);

            var poco = new Src {
                HasStart = false
            };
            var dto = poco.Adapt <Dest>(config);

            dto.Start.ShouldBeNull();
        }