Chapter 07: Writing Test Code: Difference between revisions

Line 29: Line 29:
// - What if the business rules change?
// - What if the business rules change?
// - What happens with null values?</syntaxhighlight>
// - What happens with null values?</syntaxhighlight>
'''With proper testing, we ensure:''' *
'''With proper testing, we ensure:'''  
* '''Correctness''': Code behaves as expected  
* '''Correctness''': Code behaves as expected  
* '''Regression Prevention''': Changes don’t break existing functionality  
* '''Regression Prevention''': Changes don’t break existing functionality