Click here to Skip to main content

.NET Framework

 
QuestionEnter 3 dates and display order in different VIEW, after click PinmemberxnaLearner7-Dec-12 10:52 
Question[VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) Pinmembersteve_94966136-Dec-12 22:37 
AnswerRe: [VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) PinmemberZaf Khan10-Dec-12 18:57 
GeneralRe: [VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) Pinmembersteve_949661311-Dec-12 22:20 
GeneralRe: [VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) PinmemberZaf Khan12-Dec-12 3:13 
Question[VB.NET 2008] How to get control on objects created at runtime Pinmembersteve_94966135-Dec-12 5:54 
AnswerRe: [VB.NET 2008] How to get control on objects created at runtime PinmemberEddy Vluggen5-Dec-12 6:40 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pinmembersteve_94966135-Dec-12 21:59 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime PinmemberEddy Vluggen6-Dec-12 3:27 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pinmembersteve_94966136-Dec-12 4:26 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime PinmemberEddy Vluggen6-Dec-12 6:02 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pinmembersteve_94966136-Dec-12 22:25 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime PinmemberEddy Vluggen7-Dec-12 2:16 
QuestionTesting Practices PinmemberAndrew Stoute5-Dec-12 5:44 
Let's assume you have a method similar to this one:
 
    public void SomeMethod(string myParam) {
        if (string.IsNullOrEmpty(myParam) {
            throw new Exception();
        }
 
        // The rest of the very useful method 
    }
 
When writing unit tests do you write tests that cover all of the variations of what could trip the exception?
 
i.e. one test each where
myParam = null
myParam = string.empty
myParam = "    "
Or do you just write one of the above tests?
 
I tend to write all 3 tests. And, similarly, if a positive integer is required I'll have a test for the integer being 0 and one for it being < 0 since the operators are potentially different.
 
Just wondered what you guys thought, and if I'm overdoing the testing.
 
Andrew
"My days of not taking you seriously are certainly coming to a middle."

AnswerRe: Testing Practices PinmemberEddy Vluggen5-Dec-12 6:36 
GeneralRe: Testing Practices PinmemberAndrew Stoute5-Dec-12 6:45 
GeneralRe: Testing Practices PinmemberEddy Vluggen5-Dec-12 6:53 
GeneralRe: Testing Practices PinmvpDave Kreskowiak5-Dec-12 7:29 
GeneralRe: Testing Practices PinmvpDave Kreskowiak5-Dec-12 7:26 
GeneralRe: Testing Practices PinmemberEddy Vluggen5-Dec-12 7:34 
GeneralRe: Testing Practices PinmvpDave Kreskowiak5-Dec-12 10:55 
GeneralRe: Testing Practices PinmemberEddy Vluggen6-Dec-12 1:08 
QuestionHow to make a list view and gallerie view on a product page list on some e-commerce PinmemberEl daniel4-Dec-12 1:19 
AnswerRe: How to make a list view and gallerie view on a product page list on some e-commerce PinmemberEddy Vluggen4-Dec-12 1:37 
Questionframework 2.0 and win98 Pinmembercaradri3-Dec-12 23:37 
AnswerRe: framework 2.0 and win98 PinmvpRichard MacCutchan4-Dec-12 0:01 
AnswerRe: framework 2.0 and win98 PinmemberEddy Vluggen4-Dec-12 0:04 
AnswerRe: framework 2.0 and win98 PinprotectorPete O'Hanlon4-Dec-12 0:07 
GeneralRe: framework 2.0 and win98 PinmemberEddy Vluggen4-Dec-12 0:31 
GeneralRe: framework 2.0 and win98 PinprotectorPete O'Hanlon4-Dec-12 0:38 
GeneralRe: framework 2.0 and win98 PinmemberEddy Vluggen4-Dec-12 0:43 
GeneralRe: framework 2.0 and win98 PinprotectorPete O'Hanlon4-Dec-12 0:41 
GeneralRe: framework 2.0 and win98 Pinmembercaradri4-Dec-12 1:25 
GeneralRe: framework 2.0 and win98 PinmvpDave Kreskowiak4-Dec-12 5:11 
GeneralRe: framework 2.0 and win98 Pinmembercaradri4-Dec-12 1:23 
GeneralRe: framework 2.0 and win98 PinmemberEddy Vluggen4-Dec-12 1:36 
GeneralRe: framework 2.0 and win98 Pinmembercaradri4-Dec-12 2:52 
GeneralRe: framework 2.0 and win98 PinprotectorPete O'Hanlon4-Dec-12 3:11 
GeneralRe: framework 2.0 and win98 PinmemberEddy Vluggen4-Dec-12 3:56 
Questionjquery.datePicker not working PinmemberxnaLearner3-Dec-12 7:27 
AnswerRe: jquery.datePicker not working [modified] PinprotectorPete O'Hanlon3-Dec-12 7:38 
QuestionOOPS concepts in c# Pinmember95003940022-Dec-12 18:09 
AnswerRe: OOPS concepts in c# PinmvpRichard MacCutchan2-Dec-12 22:43 
AnswerRe: OOPS concepts in c# PinmemberEddy Vluggen3-Dec-12 2:00 
GeneralRe: OOPS concepts in c# Pinmember95003940023-Dec-12 2:49 
GeneralRe: OOPS concepts in c# PinmemberEddy Vluggen3-Dec-12 4:17 
AnswerRe: OOPS concepts in c# PinprotectorPete O'Hanlon3-Dec-12 2:58 
GeneralRe: OOPS concepts in c# Pinmember95003940023-Dec-12 3:07 
GeneralRe: OOPS concepts in c# PinprotectorPete O'Hanlon3-Dec-12 3:10 
GeneralRe: OOPS concepts in c# PinmvpDave Kreskowiak3-Dec-12 3:22 

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
Web02 | 2.8.150128.1 | Last Updated 28 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid