Welcome to HCM,
Both oral and genital herpes
can be transmitted by sexual contact by oral or vaginal or anal.
Whenever skin comes in contact with the skin or mucosa comes in contact of mucosa or mucosa and skin all these can transmit this herpes.
If it is occurring in the genitals it is called as genital herpes, same thing occurring in and around the oral cavity it is called as oral herpes.
Testing for HSV 1
or HSV 2 will confirm whether you are having herpes or not, it will not rule out which herpes you got from your partner.
I am reinforcing that both the herpes can to transmitted by sexual contact.