How is male infertility diagnosed and treated in urology?

What are the common causes of male infertility, how is it diagnosed through urological evaluation and testing, and what treatment options—both medical and surgical—are available to help improve fertility in men?