Unit Testing Using Visual Studio 2010
page 5 of 5
by Vince Varallo
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 19140/ 96

Summary

Unit testing is essential when writing any application.  As a developer we are usually writing systems to automate some business process.  That is exactly what Microsoft has done for us in the case of the unit testing business process.  They have given us a great tool that will allow us as a developer to automate the task of unit testing our code.  This greatly reduces the risks of introducing bugs when enhancements or revisions are made to existing code.  The step of automating your unit tests should be an essential step in any development effort.  There are many more capabilities in the unit testing framework that I will try to address in more detail in future articles.

Good luck on your project and happy coding. 


View Entire Article

User Comments

Title: 404 on link to code for this sample   
Name: Chase
Date: 11/29/2012 1:40:46 PM
Comment:
I am getting a 404 when I click the link for the code for this sample. I'd love to try this!
Title: unit testing   
Name: Avinash Chowdary
Date: 6/1/2012 8:03:30 AM
Comment:
good article and what about the asp.net web applications they don't have .Dll to refer in test project can you explain this scenario
Title: nice one   
Name: Abhishek goletar
Date: 4/16/2012 6:18:05 AM
Comment:
nice article
thks
Title: Positive Feedback   
Name: Hitesh
Date: 4/16/2012 6:15:45 AM
Comment:
very best example to undesrstand.
I like it very much..
Thank you !!!!
Title: nice article   
Name: gourik
Date: 5/3/2011 5:02:26 AM
Comment:
thanks..
Title: unit testing   
Name: nitin garg
Date: 4/6/2011 9:00:54 PM
Comment:
good article. expecting to dive deeper in next article by creating more complex test cases.
Title: Unit Testing   
Name: wasim
Date: 4/6/2011 2:00:12 PM
Comment:
awesome.
Title: Unit Testing Answer   
Name: Vince Varallo
Date: 4/6/2011 9:16:41 AM
Comment:
The purpose of unit testing is to validate that the code you wrote performs as expected. In this example the CalculateDistance method has a few different expected results depending on the parameters that were passed in. As a developer you should test all of the expected results. If at a later date you make a change to the method you still need to validate that all of the expected results are being produced. This tool allows you to automate the process of testing your code so it should be easier to maintain and ensure the application is working as expected.
Title: Unit Testing   
Name: Dhairya Shukla
Date: 4/6/2011 2:10:55 AM
Comment:
It's good understand for me, but If you can describe what is the purpose of unit testing in asp.net and how can use it.
One more think is that explain in basic and simple language






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2014 ASPAlliance.com  |  Page Processed at 9/23/2014 4:18:01 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search