Introduction
We use assertDoesNotThrow to check that a piece of code runs without causing any errors or exceptions.
When you want to confirm that a method completes successfully without errors.
When testing code that should not throw exceptions under normal conditions.
When you want to make sure no unexpected exceptions happen during execution.
When verifying that a block of code handles inputs safely without crashing.