What is the best way to mock a private mehod? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the best way to mock a private mehod?

mocking or testing for unit test

7th May 2017, 7:06 AM
manas dash
manas dash - avatar
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
7th May 2017, 7:16 AM
manas dash
manas dash - avatar