How to write Negative testcases?..
Can plz help me
How to write Negative test cases?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
How to write Negative testcases?..
Can plz help me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jun 22, 2021, 10:23 AM EDT
lets say you have wrote Add method so assert that Add(1, 'a') fails elegantly basically try passing incorrect args
the syntax you can look up easily. Refer bellow article.
https://www.c-sharpcorner.com/UploadFile/57bdfc/negative-testing-and-how-to-write-negative-test-cases/
Andy34 reputationPosted Jun 22, 2021, 10:37 AM EDT