[PATCH 1/5] gdiplus/tests: Factor out check_properties