Click here to Skip to main content
15,919,893 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Subin Mavunkal10-Oct-11 1:24
Subin Mavunkal10-Oct-11 1:24 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Pete O'Hanlon10-Oct-11 1:25
mvePete O'Hanlon10-Oct-11 1:25 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Subin Mavunkal10-Oct-11 2:47
Subin Mavunkal10-Oct-11 2:47 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Pete O'Hanlon10-Oct-11 3:07
mvePete O'Hanlon10-Oct-11 3:07 
AnswerRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
buchstaben10-Oct-11 3:20
buchstaben10-Oct-11 3:20 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
Pete O'Hanlon10-Oct-11 3:41
mvePete O'Hanlon10-Oct-11 3:41 
GeneralRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
buchstaben10-Oct-11 3:49
buchstaben10-Oct-11 3:49 
AnswerRe: Is there a way to run nunit Test class 50 times in a loop ? Pin
jschell10-Oct-11 8:13
jschell10-Oct-11 8:13 
Bad idea.

The point of unit test is to verify that the code works. That isn't your goal here.

So what you need to is the following.
1. Create some code that demonstrates the failure. NOT a unit test itself but it certainly as a method that is suitable for use in a unit test.
2. Create a unit test that calls the code of 1.
3. Figure out the bug by running 2.
4. Re-write 1/2 as necessary to insure that the unit test run will verify, now and in the future, that your code works and continues to work.

By the way intermittent failures are often due to threads. So if you don't have any unit tests that test threading you need to add those.
Questionlog in Code in c#.net Pin
jed20119-Oct-11 23:55
jed20119-Oct-11 23:55 
AnswerRe: log in Code in c#.net PinPopular
Pete O'Hanlon10-Oct-11 0:08
mvePete O'Hanlon10-Oct-11 0:08 
AnswerRe: log in Code in c#.net Pin
Subin Mavunkal10-Oct-11 3:10
Subin Mavunkal10-Oct-11 3:10 
GeneralRe: log in Code in c#.net Pin
Pete O'Hanlon10-Oct-11 3:33
mvePete O'Hanlon10-Oct-11 3:33 
AnswerRe: log in Code in c#.net Pin
annathor10-Oct-11 3:59
annathor10-Oct-11 3:59 
Questionhow to share Entriprise Library configuration information accross muliple projects in single solution? Pin
vashokraja9-Oct-11 23:39
vashokraja9-Oct-11 23:39 
AnswerRe: how to share Entriprise Library configuration information accross muliple projects in single solution? Pin
PIEBALDconsult10-Oct-11 2:39
mvePIEBALDconsult10-Oct-11 2:39 
QuestionWorking with .DAT file. Pin
sarang_k9-Oct-11 23:34
sarang_k9-Oct-11 23:34 
AnswerRe: Working with .DAT file. PinPopular
phil.o10-Oct-11 0:23
professionalphil.o10-Oct-11 0:23 
QuestionDynamic custom controls Pin
pravin_mun9-Oct-11 20:27
pravin_mun9-Oct-11 20:27 
AnswerRe: Dynamic custom controls Pin
Richard MacCutchan9-Oct-11 21:07
mveRichard MacCutchan9-Oct-11 21:07 
Questionnot all registry values being returned Pin
JimmyRopes9-Oct-11 20:03
professionalJimmyRopes9-Oct-11 20:03 
AnswerRe: not allregistry values being returned Pin
André Kraak9-Oct-11 20:49
André Kraak9-Oct-11 20:49 
GeneralRe: not allregistry values being returned Pin
JimmyRopes10-Oct-11 3:18
professionalJimmyRopes10-Oct-11 3:18 
GeneralRe: not allregistry values being returned Pin
André Kraak10-Oct-11 7:29
André Kraak10-Oct-11 7:29 
GeneralRe: not allregistry values being returned Pin
JimmyRopes10-Oct-11 15:14
professionalJimmyRopes10-Oct-11 15:14 
GeneralRe: not allregistry values being returned Pin
André Kraak10-Oct-11 22:40
André Kraak10-Oct-11 22:40 

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.