Lets assume I have a Customer and Order table.
When I do a Customer_Delete_Test do you also Assert if the related Orders are deleted too or
do you rely on the referential integrity between the tables like On Cascade Delete ?
I would unit test to ensure that you have constructed your database correctly and is behaving as you are expecting it to behave.
The database vendors may have done their job but that is only part of the story. Have you done yours correctly?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With