Unit test the Automapper profiles
问题 I do want to test the custom logic in the CreateMap method. I do NOT want to test whether the mapping exist at all for some types. How can I do that or what are the classes that I need to know. I am grateful for every hint The document about. Automapper unit testing seems very rare... public class UnitProfile : Profile { protected override void Configure() { // Here I create my maps with custom logic that needs to be tested CreateMap<Unit, UnitTreeViewModel>() .ForMember(dest => dest.IsFolder