Click here to Skip to main content
       

.NET Framework

 
GeneralRe: Testing Practices PinmvpDave Kreskowiak5-Dec-12 6:29 
GeneralRe: Testing Practices PinmvpDave Kreskowiak5-Dec-12 6:26 
GeneralRe: Testing Practices PinmemberEddy Vluggen5-Dec-12 6:34 
GeneralRe: Testing Practices PinmvpDave Kreskowiak5-Dec-12 9:55 
Eddy Vluggen wrote:
The parameter only accepts strings, making this test superfluous.

 
You would check for mull before trying to work with the string?? I don't see how that's superfluous.
 

Eddy Vluggen wrote:
Personally, I don't care for "whitespace"; if a user wants to store three
spaces, a tab and a newline, then that's what gets stored. The only place where
you "might" want to check it, is when validating input.

 
User's aren't the only source of input that makes your code go "WTE!?" Foreign systems, poor XML files, non-normallized data in a database you inherit, corruption from a poor communications channel, ... the list goes on. You can get a blank or string formatted in some way your code doesn't expect from any number of sources. I was always taught that a method should be written to defend itself against pontentially bad data.

GeneralRe: Testing Practices PinmemberEddy Vluggen6-Dec-12 0:08 
QuestionHow to make a list view and gallerie view on a product page list on some e-commerce PinmemberEl daniel4-Dec-12 0:19 
AnswerRe: How to make a list view and gallerie view on a product page list on some e-commerce PinmemberEddy Vluggen4-Dec-12 0:37 
Questionframework 2.0 and win98 Pinmembercaradri3-Dec-12 22:37 
AnswerRe: framework 2.0 and win98 PinmvpRichard MacCutchan3-Dec-12 23:01 
AnswerRe: framework 2.0 and win98 PinmemberEddy Vluggen3-Dec-12 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140905.1 | Last Updated 16 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid