How to write Negative testcases?..
Can plz help me
Loading
How to write Negative testcases?..
Can plz help me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajanikant HawaldarPosted Jun 22, 2021, 2:23 PM
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/
AndyPosted Jun 22, 2021, 2:37 PM