Your doctor will probably be able to tell if you have a cold sore by looking at the affected area. He or she may also swab the cold sore to test the fluid for the herpes simplex virus.