Benedict's test works by reacting a sample of the unknown compound with Benedict's reagent, which is a solution of copper(II) sulfate and sodium citrate. If the sample contains aldehydes or ketones, it will react with the copper ions in the solution to produce a characteristic color change, ranging from yellow to green to blue to brown, depending on the amount of reducing sugars present in the sample.