top down vs bottom up testing code example
Example: top down vs bottom up testing
Top-Down testing begins with the system and
works its way down to the unit level.
• Bottom-up testing checks in the opposite
direction, unit level to interface to
overall system. Both have value but
bottom-up testing usually aids in discovering
defects earlier in the development cycle,
when the cost to fix errors is lower.