How do doctors test for an armpit infection and how can they tell what kind? Is it skin scrapings?

Wrong question. Do you see something there? Pain? Itch? A dermatologist needs only an exam, seldom needs tests to treat something there.