I have started using Team System at work and I stumbled upon the built in functionality to generate a unit test for a private method. At first I thought it was sweet that you could test private methods but then after going for a walk, I have come to the conclusion that this is not a good feature.
Someone has probably complained about this before but is there a situation where you would use a private method that is not eventually called by a public or protected method that is itself testable? Shouldn't you test the public or protected method to see if your private method is called and returns what you are expecting? I am going to avoid using this functionality until I find a valid reason to use it.
Theme design by Jelle Druyts
Pick a theme: BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2 BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2
Powered by: newtelligence dasBlog 2.0.7226.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008, Steven Rockarts
E-mail