Questions for some diagnosed with an anxiety disorder

How were you diagnosed? I think I have a generalized anxiety disorder but I want to confirm it through a doctor.