Click here to Skip to main content
15,890,946 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check if software is installed Pin
Heath Stewart10-Jun-04 9:51
protectorHeath Stewart10-Jun-04 9:51 
GeneralRe: Check if software is installed Pin
Peter Nirschl11-Jun-04 22:23
Peter Nirschl11-Jun-04 22:23 
GeneralRe: Check if software is installed Pin
Heath Stewart12-Jun-04 0:25
protectorHeath Stewart12-Jun-04 0:25 
GeneralWeb Service on Pocket PC Pin
JRacle10-Jun-04 2:28
JRacle10-Jun-04 2:28 
GeneralRe: Web Service on Pocket PC Pin
Wackatronic10-Jun-04 4:53
Wackatronic10-Jun-04 4:53 
GeneralRe: Web Service on Pocket PC Pin
JRacle10-Jun-04 5:57
JRacle10-Jun-04 5:57 
Generalwriting good unit tests Pin
steven shingler10-Jun-04 1:26
steven shingler10-Jun-04 1:26 
GeneralRe: writing good unit tests Pin
Colin Angus Mackay10-Jun-04 1:58
Colin Angus Mackay10-Jun-04 1:58 
Not really got any examples I could share but some ideas to help you out:

* Test with good input

* Test with bad input

* Test with input at the edge of valid ranges. e.g. If your method can accept an integer in the range 1 to 100 test that 0 and 101 fail properly (throwing the correct exception, or returning the appropriate success indicator), and test that 1 and 100 work.

* Test different combinations of data. e.g. if it doesn't matter which order two parameters are given, then check that by testing with these parameters in a different order.

* Look at the possible code paths inside your method and try and construct tests that will take the code through each of the possible paths.

Probably other people will reply also with other ideas, but these are some that immediately spring to mind.


"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

The Second EuroCPian Event will be in Brussels on the 4th of September

Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

My Blog


GeneralRe: writing good unit tests Pin
steven shingler10-Jun-04 3:39
steven shingler10-Jun-04 3:39 
GeneralRe: writing good unit tests Pin
Marc Clifton10-Jun-04 10:10
mvaMarc Clifton10-Jun-04 10:10 
GeneralReading Serial Device (How To?) Pin
Ariadne10-Jun-04 0:05
Ariadne10-Jun-04 0:05 
GeneralRe: Reading Serial Device (How To?) Pin
Stefan Troschuetz10-Jun-04 0:28
Stefan Troschuetz10-Jun-04 0:28 
Generalxmldocument and xhtml = sloooow Pin
Roger Alsing9-Jun-04 23:20
Roger Alsing9-Jun-04 23:20 
GeneralRe: xmldocument and xhtml = sloooow Pin
Heath Stewart10-Jun-04 6:45
protectorHeath Stewart10-Jun-04 6:45 
GeneralRe: xmldocument and xhtml = sloooow Pin
Roger Alsing10-Jun-04 23:37
Roger Alsing10-Jun-04 23:37 
GeneralRe: xmldocument and xhtml = sloooow Pin
Heath Stewart11-Jun-04 2:53
protectorHeath Stewart11-Jun-04 2:53 
GeneralLife of application Pin
quocbao9-Jun-04 21:55
quocbao9-Jun-04 21:55 
GeneralRe: Life of application Pin
Alex Getman10-Jun-04 1:24
Alex Getman10-Jun-04 1:24 
GeneralRe: Life of application Pin
Wackatronic10-Jun-04 4:55
Wackatronic10-Jun-04 4:55 
GeneralRe: Life of application Pin
Dave Kreskowiak10-Jun-04 4:56
mveDave Kreskowiak10-Jun-04 4:56 
GeneralThe file associated with FileStream Pin
Meysam Mahfouzi9-Jun-04 21:40
Meysam Mahfouzi9-Jun-04 21:40 
GeneralRe: The file associated with FileStream Pin
Heath Stewart10-Jun-04 4:25
protectorHeath Stewart10-Jun-04 4:25 
QuestionHow to add image property to UserControl? Pin
luming11223344559-Jun-04 21:38
luming11223344559-Jun-04 21:38 
AnswerRe: How to add image property to UserControl? Pin
partyganger10-Jun-04 3:10
partyganger10-Jun-04 3:10 
AnswerRe: How to add image property to UserControl? Pin
Heath Stewart10-Jun-04 4:20
protectorHeath Stewart10-Jun-04 4:20 

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.