Diagnosis of CDI typically involves stool tests to detect the presence of C. difficile toxins. Common tests include enzyme immunoassays (EIAs) and polymerase chain reaction (PCR) tests. In some cases, a colonoscopy or imaging tests may be used to assess the extent of inflammation in the colon.