I don't think current employment law allows, but as a software candidate I'd much rather assess the company/team fit on a trial basis as well. (Am neither a lawyer nor HR)
I wonder what some solutions might be?