Click here to Skip to main content
15,895,841 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
_Maxxx_6-Oct-14 19:34
professional_Maxxx_6-Oct-14 19:34 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
Marc Clifton6-Oct-14 15:18
mvaMarc Clifton6-Oct-14 15:18 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
_Maxxx_6-Oct-14 15:47
professional_Maxxx_6-Oct-14 15:47 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
Marc Clifton6-Oct-14 16:21
mvaMarc Clifton6-Oct-14 16:21 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
_Maxxx_6-Oct-14 18:09
professional_Maxxx_6-Oct-14 18:09 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
Super Lloyd6-Oct-14 18:07
Super Lloyd6-Oct-14 18:07 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
Marc Clifton7-Oct-14 2:26
mvaMarc Clifton7-Oct-14 2:26 
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
Nicholas Marty6-Oct-14 23:59
professionalNicholas Marty6-Oct-14 23:59 
At least in case of .Net:

If you really want to keep some methods away from public but still want to test them with unit tests consider making them internal instead of private. You can then set an assembly attribute to make them visible to your test project (InternalsVisibleToAttribute[^])

Or if you really absolutely want to test private methods: Noone stops you from using reflection and doing just that. Laugh | :laugh:
GeneralRe: I like unit testing and debugging private methods so u$ sucks today Pin
peterchen7-Oct-14 0:32
peterchen7-Oct-14 0:32 
RantPHP PinPopular
Marc Clifton6-Oct-14 9:48
mvaMarc Clifton6-Oct-14 9:48 
GeneralRe: PHP Pin
CDP18026-Oct-14 9:54
CDP18026-Oct-14 9:54 
GeneralRe: PHP Pin
Afzaal Ahmad Zeeshan6-Oct-14 9:58
professionalAfzaal Ahmad Zeeshan6-Oct-14 9:58 
GeneralRe: PHP Pin
Marc Clifton6-Oct-14 10:13
mvaMarc Clifton6-Oct-14 10:13 
GeneralRe: PHP Pin
Jeremy Falcon6-Oct-14 11:24
professionalJeremy Falcon6-Oct-14 11:24 
GeneralRe: PHP Pin
Chris Maunder6-Oct-14 10:07
cofounderChris Maunder6-Oct-14 10:07 
GeneralRe: PHP Pin
Marc Clifton6-Oct-14 10:16
mvaMarc Clifton6-Oct-14 10:16 
GeneralRe: PHP PinPopular
Roger Wright6-Oct-14 10:13
professionalRoger Wright6-Oct-14 10:13 
GeneralRe: PHP Pin
CDP18026-Oct-14 10:16
CDP18026-Oct-14 10:16 
GeneralRe: PHP Pin
Jeremy Falcon6-Oct-14 10:32
professionalJeremy Falcon6-Oct-14 10:32 
GeneralRe: PHP Pin
Jeremy Falcon6-Oct-14 10:24
professionalJeremy Falcon6-Oct-14 10:24 
GeneralRe: PHP Pin
Slacker0076-Oct-14 10:29
professionalSlacker0076-Oct-14 10:29 
GeneralRe: PHP Pin
Jeremy Falcon6-Oct-14 10:31
professionalJeremy Falcon6-Oct-14 10:31 
GeneralRe: PHP Pin
Slacker0076-Oct-14 10:36
professionalSlacker0076-Oct-14 10:36 
GeneralRe: PHP Pin
Jeremy Falcon6-Oct-14 10:48
professionalJeremy Falcon6-Oct-14 10:48 
GeneralRe: PHP Pin
Marc Clifton6-Oct-14 10:33
mvaMarc Clifton6-Oct-14 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.