How should a developer write unit tests for a private method in an Apex class?

Posted by: Pdfprep Category: PDI Tags: , ,

How should a developer write unit tests for a private method in an Apex class?
A . Use the SeeAllData annotation.
B . Add a test method in the Apex class.
C . Use the TestVisible annotation.
D . Mark the Apex class as global.

Answer: C