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