Multiple choice technology testing

A test unit can be written in any of the following type

  1. using Assert

  2. comparing the log files

  3. None of the Above

  4. Both of the Above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A test unit can indeed be written using assertions (Assert) to validate expected outcomes, and by comparing log files to verify actual behavior against expected results. Both approaches are valid testing strategies, making 'Both of the Above' the correct choice.