Unit Testing Group

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit test on private class method

tyk007 wrote:

this often indicates that the method in question is doing enough work to warrant refactoring this out into it's own scope / class and then delegating to this in the original public methods.

Bingo. I was actually having that exact discussion in a side conversation with Fab today.

I've dealt with developers who are adamant that they need to be able to test Private methods, and I've often come to the conclusion that they don't have a testing problem, they have an architecture/framework problem .

Message 11 of 11
(768 Views)