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

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

Latest CRT-450 Practice Questions with 372 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments