What is the best way to mock a private mehod? | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
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 Odpowiedź
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