I am using .net unit testing in my project. I can unit test, get methods by using Assert.AreEqual. But how can i test Insert/update/delete methods. Please help
Thanks in advance.
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.
For insert, the basic test pattern could be:
For update:
For delete:
Note than in order to compare reference entities, you can do it manually for each entity type or use a recursive entity comparison method