Skip to content

Commit

Permalink
[fix] unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed Jan 10, 2022
1 parent e751254 commit 27d572f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void MapTo_NullDestinationMemberExpression_ThrowsAutoMapperConfigurationE
Assert.Throws<AutoMapperConfigurationException>(() => new MapperConfiguration(c => c.CreateMap<FoodSource, FoodDto>()
.MapTo(nullDestinationExpression!, "Category")));

Assert.Throws<AutoMapperConfigurationException>(() => new MapperConfiguration(c => c.CreateMap<FoodSource, FoodDto>()
Assert.Throws<ArgumentException>(() => new MapperConfiguration(c => c.CreateMap<FoodSource, FoodDto>()
.MapTo(d => null, s => s.Category)));
}

Expand Down

0 comments on commit 27d572f

Please sign in to comment.