Using MSTest how can I verify the exact error message coming from a test method? I know [ExpectedException(typeof(ApplicationException), error msg)]
doesn't compare the error message coming from my test method, though in other unit test framework it is doing.
One way to solve this problem is to write my unit test using some try catch block, but again I need to write 4 lines more.
Is there any smartest way to check the error message.
Cheers,
Pritam
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…