Make sure wh.Set() is called only if no Assert fails.