public async Task Map_ToNewObject_Mapped() { AsyncMapper mapper = new AsyncMapper(); MapTo to = await mapper.Map(new MapFrom() { Property = 1 }); Assert.Equal(1, to.Property); }
public void Map_Null_ThrowsArgumentNullException() { AsyncMapper mapper = new AsyncMapper(); Assert.ThrowsAsync <ArgumentNullException>("source", () => mapper.Map(null)); }