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 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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?