It&#x27;s not about what they could use. It&#x27;s about what they own and where it&#x27;s going. If your employment agreement states that any code you write belongs to your employer and that you&#x27;re not allowed to share company code with others, then a work-sample test essentially asks candidates to violate their current employment agreement.