What is the best way to mock a private mehod? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
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