Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm looking for a good reference (to a webpage or book) on unit testing in Visual Studio with large datasets (with the native unit testing tools in Visual Studio). (I've got Visual Studio 2008 Professional.) Any clue?
Posted

1 solution

 
Share this answer
 
Comments
Gebbetje 26-Jan-11 6:36am    
Thank you Sandeep.

Your 1st link looks interesting. One question though: the article (and the 2nd as well) talks about Visual Studio Team System 2005 and I have Visual Studio 2008 Professional. Is this applicable to Visual Studio 2008 Professional?

(What I forgot to mention in my initial post is that I extensively googled on this subject, but did not find any thing comprehensible and applicable to large datasets.)
Edit: corrected the name into Visual Studio Team System 2005.
Sandeep Mewara 26-Jan-11 9:19am    
On a general basis, yes it should be applicable and backward compatible.
Gebbetje 27-Jan-11 6:11am    
I'm reading throught the 1st link. Under "Adding a Test Database" adding a database file to the project is not working, I'm afraid. I can add a SQL Server compact database, but can't access it from my test project. Any clues? (I do like to keep the database file with my test project.) (I could add a database to SQL Server and put the files in the directory of my test project.)
Gebbetje 27-Jan-11 6:21am    
"Code Coverage" doesn't seem to be included in Visual Studio 2008 Professional. Pity.
Gebbetje 2-Feb-11 9:52am    
The first link is interesting (as I already mentioned). It shows how to use a database as input for testing. Thanks for that. The database is used for input of (single) parameter values.
The second link has more the testing of a database and the methods to access the database as a focus.
The third link shows a decent number of articles that explain the basics of unit testing in Visual Studio.
My project though involves methods that do calculations on long time series (of mutual fund returns) that need at least 36 months of returns for multiple mutual funds. What I'm looking for is a tutorial on how to test this project (using one or a couple of fixed data sets). Any references?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900