title: In MSTest, How can I verify exact error message using [ExpectedException(typeof(ApplicationException))]
body: <p>Using MSTest how can I verify the exact error message coming from a test method? I know <code>[ExpectedException(typeof(ApplicationException), error msg)]</code> doesn't compare the error message coming from my test method, though in other unit test framework it is doing.</p>
  
  <p>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. </p>
  
  <p>Is there any smartest way to check the error message.</p>
  
  <p>Cheers,
  Pritam</p>