How to make VS Unit Test show an error message from exceptions other than UnitTestAssertException?

I am using VS Unit Testing Framework and Moq .

When the Moq check fails, I will get a Moq.MockException. In the test results window, instead of showing a useful message inside the exception, it simply says: "The verification method XXX selected the exception: ..."

Is there a way to report that the VS Unit Test structure always displays a message about exceptions of this type (for example, Moq.MockException)?

+3
source share
1 answer

: . " " MSTest (, , , MSTest , ).

, ( , ):

!

+1

Source: https://habr.com/ru/post/1767963/


All Articles