New course! Every coder should learn Generative AI!
Try a free lesson0
What is the best way to mock a private mehod?
mocking or testing for unit test
1 Answer
0
use public method to call the Pvt and test public or make the method protected and call it from the derived unit test class