public async Task MapList_Empty_Mapped() { var mapper = new AsyncMapper(); var to = await mapper.MapList( new MapFrom[0]); Assert.IsType <List <MapTo> >(to); Assert.Empty(to); }
public async Task MapList_ToNewObject_Mapped() { var mapper = new AsyncMapper(); var to = await mapper.MapList( new MapFrom[] { new MapFrom() { Property = 1 }, new MapFrom() { Property = 2 } }); Assert.IsType <List <MapTo> >(to); Assert.Equal(2, to.Count); Assert.Equal(1, to[0].Property); Assert.Equal(2, to[1].Property); }