Scrapings or samples of the infected area can also help confirm a diagnosis. Samples can be cultured or examined under a microscope to determine if a yeast infection is the cause.