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


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: 2012-11-29 1:40:46 PM
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: 2012-06-01 8:03:30 AM
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: 2012-04-16 6:18:05 AM
nice article
Title: Positive Feedback   
Name: Hitesh
Date: 2012-04-16 6:15:45 AM
very best example to undesrstand.
I like it very much..
Thank you !!!!
Title: nice article   
Name: gourik
Date: 2011-05-03 5:02:26 AM
Title: unit testing   
Name: nitin garg
Date: 2011-04-06 9:00:54 PM
good article. expecting to dive deeper in next article by creating more complex test cases.
Title: Unit Testing   
Name: wasim
Date: 2011-04-06 2:00:12 PM
Title: Unit Testing Answer   
Name: Vince Varallo
Date: 2011-04-06 9:16:41 AM
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: 2011-04-06 2:10:55 AM
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-2024 ASPAlliance.com  |  Page Processed at 2024-04-22 2:55:23 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search