Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi in my test method i have lot of Assertions. if any condition will fail. the program will be terminated. My Need is If any exception Occur i need to set the custom exception Message. Anybody know How to Proceed..
Posted
Comments
Leena 206 11-Sep-13 9:04am    
Can u put your code that you have tried?

1 solution

Suppose you are checking for same things and error occure then you can show custom message as -
Assert.AreEqual(Object, Object,Message);


refer this : For showing custom message[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900