It is best to agree in advance with your employer whether the trial assignment should be paid for and, if so, how much. Usually 30-60 minutes are enough to determine whether you want to work together. If the trial assignment lasts longer, you should of course be paid for it.