Describe a situation where unit testing saved you from a critical bug.?
In one project, a unit test caught a null reference exception caused by missing initialization.
This early detection prevented the bug from reaching production, saving hours of debugging
and user impact.