How Does a Doctor diagnose you with PCOS?

Is there a certain test that they do?