Adding descriptive messages to assertions? #2844
Answered
by
bradwilson
HaitemBahri
asked this question in
Question
-
Hello Is there a way to add a test description to an assertion in xUnit? Example: Assert.Equal(expectedResult, actualResult, testDescription); Regards |
Beta Was this translation helpful? Give feedback.
Answered by
bradwilson
Dec 9, 2023
Replies: 1 comment
-
The only assertions we allow message overrides for are True and False, because people tend to use those as "catch all" assertions. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HaitemBahri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The only assertions we allow message overrides for are True and False, because people tend to use those as "catch all" assertions.