dinger2121
Programmer
Hello,
I am trying to get up and running with tdd in c#, and have a question.
I am planning to create a class for processing a text file. This class will take in a file name, process the data, add it to an List, and return the list.
My question is this - what do I want to create tests for? I was thinking that I will only want to create a test to ensure that I am able to construct this object, and then one to ensure that a List is successfully returned. Is that correct?
I am kind of hung up on the correct approach to take and I'm not sure if I'm thinking about this the right way.
Thank for any thoughts.
carl
MCSD, MCTS:MOSS
I am trying to get up and running with tdd in c#, and have a question.
I am planning to create a class for processing a text file. This class will take in a file name, process the data, add it to an List, and return the list.
My question is this - what do I want to create tests for? I was thinking that I will only want to create a test to ensure that I am able to construct this object, and then one to ensure that a List is successfully returned. Is that correct?
I am kind of hung up on the correct approach to take and I'm not sure if I'm thinking about this the right way.
Thank for any thoughts.
carl
MCSD, MCTS:MOSS