By mswatcher
via weblogs.asp.net
Published: Jun 02 2008 / 17:58
Here's an analogy I came up with to explain the difference between unit tests and integration tests.
Imagine going to a restaurant with a bunch of your friends. there are some couples there as well as singles. At the end of the meal, it is time to pay. Unit testing is like giving a separate bill to each couple or single. Each person knows only what they needs to pay as well as tip, but do not care what anyone else had, or what the total meal amount is. as long as they pay what they need, they can go home peacefully.



Add your comment