Click here to Skip to main content
15,885,985 members
Home / Discussions / C#
   

C#

 
AnswerRe: Remove duplicates Pin
Bernhard Hiller27-Feb-18 21:22
Bernhard Hiller27-Feb-18 21:22 
GeneralRe: Remove duplicates Pin
Shankar M27-Feb-18 21:55
Shankar M27-Feb-18 21:55 
GeneralRe: Remove duplicates Pin
Pete O'Hanlon28-Feb-18 0:25
mvePete O'Hanlon28-Feb-18 0:25 
GeneralRe: Remove duplicates Pin
Shankar M27-Feb-18 22:14
Shankar M27-Feb-18 22:14 
QuestionAutomatic unit tests Pin
Hila Berger27-Feb-18 0:01
Hila Berger27-Feb-18 0:01 
AnswerRe: Automatic unit tests Pin
Pete O'Hanlon27-Feb-18 1:27
mvePete O'Hanlon27-Feb-18 1:27 
GeneralRe: Automatic unit tests Pin
Hila Berger1-Mar-18 0:10
Hila Berger1-Mar-18 0:10 
GeneralRe: Automatic unit tests Pin
Pete O'Hanlon1-Mar-18 0:32
mvePete O'Hanlon1-Mar-18 0:32 
To a certain extent, yes it does (see the links in my original post to PEX and Moles from Microsoft research). The real question is, how much value do these tools provide? For instance, it's simple enough to automatically check whether or not a value is null but what about range checks? Would a tool know that your code expected a value between 0 and 5? Don't fall into the trap of just blindly adding tests, which is the problem with this idea. Your tests should really be there to exercise the expected logic of your code; for instance, if you changed the acceptable range from 0 to 6 and passed 6 into the code expecting the test to follow the fail path, it would suddenly follow a different path through your code so you would know that your test needs to change.
This space for rent

AnswerRe: Automatic unit tests Pin
Eddy Vluggen27-Feb-18 2:02
professionalEddy Vluggen27-Feb-18 2:02 
GeneralRe: Automatic unit tests Pin
Hila Berger1-Mar-18 0:12
Hila Berger1-Mar-18 0:12 
GeneralRe: Automatic unit tests Pin
Eddy Vluggen1-Mar-18 0:28
professionalEddy Vluggen1-Mar-18 0:28 
AnswerRe: Automatic unit tests Pin
Bohdan Stupak27-Feb-18 4:37
professionalBohdan Stupak27-Feb-18 4:37 
QuestionFinally! I found a valid use for the ref keyword Pin
Foothill26-Feb-18 10:57
professionalFoothill26-Feb-18 10:57 
AnswerRe: Finally! I found a valid use for the ref keyword Pin
Richard Deeming26-Feb-18 11:57
mveRichard Deeming26-Feb-18 11:57 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 3:08
professionalFoothill27-Feb-18 3:08 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Eddy Vluggen27-Feb-18 3:12
professionalEddy Vluggen27-Feb-18 3:12 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 3:31
professionalFoothill27-Feb-18 3:31 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Eddy Vluggen27-Feb-18 3:42
professionalEddy Vluggen27-Feb-18 3:42 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Eddy Vluggen27-Feb-18 5:23
professionalEddy Vluggen27-Feb-18 5:23 
AnswerRe: Finally! I found a valid use for the ref keyword Pin
Bohdan Stupak26-Feb-18 23:18
professionalBohdan Stupak26-Feb-18 23:18 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 3:25
professionalFoothill27-Feb-18 3:25 
AnswerRe: Finally! I found a valid use for the ref keyword Pin
Gerry Schmitz27-Feb-18 6:15
mveGerry Schmitz27-Feb-18 6:15 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Richard Deeming27-Feb-18 6:30
mveRichard Deeming27-Feb-18 6:30 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 6:32
professionalFoothill27-Feb-18 6:32 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Gerry Schmitz27-Feb-18 7:01
mveGerry Schmitz27-Feb-18 7:01 

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.