Introduction
We use assertNotEquals to check that two values are different. It helps us make sure our program does not produce unwanted equal results.
When you want to confirm a function does not return a specific wrong value.
When testing that two objects or variables are not the same after an operation.
When verifying that a change in input causes a change in output.
When ensuring that a method does not mistakenly produce duplicate results.
When checking that a value has been updated and is no longer equal to the old value.