Question:my exception class has a List, contain multiple error messages like this:
ValidationErrorswith Description “missing field 2”? What I am trying to do like this (but failed)
Answer:For the sake of clarity, I would split the assertion that a specific exception has been thrown from the assertions of its properties:
If you have better answer, please add a comment about this, thank you!