Click here to Skip to main content
15,917,456 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: Multithreading for dummy Pin
Super Lloyd24-Nov-17 18:34
Super Lloyd24-Nov-17 18:34 
GeneralRe: Multithreading for dummy Pin
jschell27-Nov-17 11:00
jschell27-Nov-17 11:00 
JokeLOL (Corny Humor) Pin
Brisingr Aerowing23-Nov-17 15:57
professionalBrisingr Aerowing23-Nov-17 15:57 
GeneralRe: LOL (Corny Humor) Pin
sibling12323-Nov-17 23:28
sibling12323-Nov-17 23:28 
GeneralRe: LOL (Corny Humor) Pin
dandy7224-Nov-17 5:29
dandy7224-Nov-17 5:29 
GeneralRe: LOL (Corny Humor) Pin
Brisingr Aerowing24-Nov-17 14:13
professionalBrisingr Aerowing24-Nov-17 14:13 
GeneralVS Test Tools & Live coverage - Am I overreacting? Pin
Fernando A. Gomez F.23-Nov-17 11:28
Fernando A. Gomez F.23-Nov-17 11:28 
GeneralRe: VS Test Tools & Live coverage - Am I overreacting? Pin
HobbyProggy23-Nov-17 19:25
professionalHobbyProggy23-Nov-17 19:25 
On my behalf of understanding i think you overreact and misunderstood the purpose of Expected exceptions!

Your Test is expecting that an exception is thrown at some place because (probably test data is, input parameters are forcing this).

So you can only test until the exception is thrown, which results in non full coverage of the method, but the test is correct!

If you want to do it completely right you might test a method way more than 10 times. Then you get 100% coverage on that method and yeah, obviously are running fully through it multiple times Smile | :)

SO microsoft is completly right on this behaviour because you broke your method somewhere (Exception).

I for my self write minimum 1 happy path, 1 total failure, and for each input param one test, plus if there is more than one input param several more where 1 param is good the other bad and vice versa.

I learned this thinking at DWX on a Software Testing session and this guy was totally right. 16 Tests for one method? Wow, overload, but no, you find the bugs, kill them and your method is 100% unbreakable Smile | :)
Rules for the FOSW ![^]
if(this.signature != "")
{
    MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
    MessageBox.Show("404-Signature not found");
}

GeneralRe: VS Test Tools & Live coverage - Am I overreacting? Pin
F-ES Sitecore23-Nov-17 22:24
professionalF-ES Sitecore23-Nov-17 22:24 
GeneralThought of the Day Pin
OriginalGriff23-Nov-17 4:49
mveOriginalGriff23-Nov-17 4:49 
GeneralRe: Thought of the Day Pin
lopatir23-Nov-17 5:02
lopatir23-Nov-17 5:02 
QuestionRe: Thought of the Day Pin
megaadam23-Nov-17 5:07
professionalmegaadam23-Nov-17 5:07 
GeneralRe: Thought of the Day Pin
Herman<T>.Instance23-Nov-17 5:20
Herman<T>.Instance23-Nov-17 5:20 
GeneralRe: Thought of the Day Pin
lopatir23-Nov-17 6:37
lopatir23-Nov-17 6:37 
GeneralRe: Thought of the Day Pin
PIEBALDconsult23-Nov-17 6:04
mvePIEBALDconsult23-Nov-17 6:04 
GeneralRe: Thought of the Day Pin
Joanne Criss23-Nov-17 20:30
Joanne Criss23-Nov-17 20:30 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer23-Nov-17 6:56
professionalDaniel Pfeffer23-Nov-17 6:56 
GeneralRe: Thought of the Day Pin
Ravi Bhavnani23-Nov-17 7:33
professionalRavi Bhavnani23-Nov-17 7:33 
GeneralRe: Thought of the Day Pin
DRHuff24-Nov-17 4:05
DRHuff24-Nov-17 4:05 
GeneralHappy Thanksgiving! Pin
Marc Clifton23-Nov-17 2:34
mvaMarc Clifton23-Nov-17 2:34 
GeneralRe: Happy Thanksgiving! Pin
lopatir23-Nov-17 2:51
lopatir23-Nov-17 2:51 
GeneralRe: Happy Thanksgiving! Pin
Marc Clifton23-Nov-17 4:53
mvaMarc Clifton23-Nov-17 4:53 
GeneralRe: Happy Thanksgiving! Pin
Jörgen Andersson23-Nov-17 9:25
professionalJörgen Andersson23-Nov-17 9:25 
GeneralRe: Happy Thanksgiving! Pin
BillWoodruff23-Nov-17 2:58
professionalBillWoodruff23-Nov-17 2:58 
GeneralRe: Happy Thanksgiving! Pin
CodeWraith23-Nov-17 3:53
CodeWraith23-Nov-17 3:53 

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.