You'd test those cases. This way, if you'll change your code to be
``` public setValue(value) { this.value = value + 5 } ```
then your tests will start to fail.
Treat tests as a contract.
``` public setValue(value) { this.value = value + 5 } ```
then your tests will start to fail.
Treat tests as a contract.
Of course it's also a balancing act - should you immediately write test for this? I try to.