Click here to Skip to main content
15,878,945 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to programmatically paste text into a specific Word document Pin
Eddy Vluggen6-Feb-18 5:25
professionalEddy Vluggen6-Feb-18 5:25 
GeneralRe: How to programmatically paste text into a specific Word document Pin
Leif Simon Goodwin6-Feb-18 21:51
Leif Simon Goodwin6-Feb-18 21:51 
GeneralRe: How to programmatically paste text into a specific Word document Pin
Eddy Vluggen7-Feb-18 1:31
professionalEddy Vluggen7-Feb-18 1:31 
GeneralRe: How to programmatically paste text into a specific Word document Pin
Leif Simon Goodwin7-Feb-18 3:46
Leif Simon Goodwin7-Feb-18 3:46 
GeneralRe: How to programmatically paste text into a specific Word document Pin
Eddy Vluggen8-Feb-18 0:29
professionalEddy Vluggen8-Feb-18 0:29 
AnswerRe: How to programmatically paste text into a specific Word document Pin
Maciej Los6-Feb-18 5:28
mveMaciej Los6-Feb-18 5:28 
QuestionShould I unit test private methods? Pin
Hila Berger5-Feb-18 23:39
Hila Berger5-Feb-18 23:39 
AnswerRe: Should I unit test private methods? PinPopular
Pete O'Hanlon6-Feb-18 0:11
mvePete O'Hanlon6-Feb-18 0:11 
This is one of those questions that can end up in semi-religious wars with people wanting to burn the heretics who don't do things "their way". If you are part of a team and the standard is to just test public implementations, then you just test public implementations. If that team insists on unit testing everything, then test the private methods as well.

I have to admit that I prefer tests that only test the public methods. Basically, if you have a private method that you can't get to somehow via your public methods then either that code is "dead code", or you have a serious problem with your architecture and are relying on reflection in the main codebase to get at this code and run it. Thing is, if you follow SOLID principals, no single part of your codebase should be that large that you can't adequately cover the private methods via the public methods/properties.
This space for rent

GeneralRe: Should I unit test private methods? Pin
OriginalGriff6-Feb-18 0:53
mveOriginalGriff6-Feb-18 0:53 
GeneralRe: Should I unit test private methods? Pin
Hila Berger7-Feb-18 0:24
Hila Berger7-Feb-18 0:24 
GeneralRe: Should I unit test private methods? Pin
Pete O'Hanlon7-Feb-18 1:05
mvePete O'Hanlon7-Feb-18 1:05 
AnswerRe: Should I unit test private methods? Pin
Eddy Vluggen6-Feb-18 14:43
professionalEddy Vluggen6-Feb-18 14:43 
GeneralRe: Should I unit test private methods? Pin
Hila Berger6-Feb-18 23:58
Hila Berger6-Feb-18 23:58 
AnswerRe: Should I unit test private methods? Pin
GregoryPres7-Feb-18 22:14
GregoryPres7-Feb-18 22:14 
AnswerRe: Should I unit test private methods? Pin
Frygreen22-Feb-18 10:46
Frygreen22-Feb-18 10:46 
QuestionLinq Query Limitations, more than one query fails Pin
Member 136243255-Feb-18 10:47
Member 136243255-Feb-18 10:47 
AnswerRe: Linq Query Limitations, more than one query fails Pin
Dave Kreskowiak5-Feb-18 10:55
mveDave Kreskowiak5-Feb-18 10:55 
GeneralRe: Linq Query Limitations, more than one query fails Pin
Member 136243255-Feb-18 11:09
Member 136243255-Feb-18 11:09 
GeneralRe: Linq Query Limitations, more than one query fails Pin
Member 136243255-Feb-18 11:14
Member 136243255-Feb-18 11:14 
GeneralRe: Linq Query Limitations, more than one query fails Pin
Member 136243255-Feb-18 11:20
Member 136243255-Feb-18 11:20 
QuestionPreferred connection to database, config or class? Pin
bjay tiamsic4-Feb-18 12:46
bjay tiamsic4-Feb-18 12:46 
AnswerRe: Preferred connection to database, config or class? Pin
OriginalGriff4-Feb-18 19:59
mveOriginalGriff4-Feb-18 19:59 
GeneralRe: Preferred connection to database, config or class? Pin
bjay tiamsic5-Feb-18 19:48
bjay tiamsic5-Feb-18 19:48 
GeneralRe: Preferred connection to database, config or class? Pin
Pete O'Hanlon5-Feb-18 20:06
mvePete O'Hanlon5-Feb-18 20:06 
AnswerRe: Preferred connection to database, config or class? Pin
Eddy Vluggen5-Feb-18 1:18
professionalEddy Vluggen5-Feb-18 1:18 

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.