Do not use typeof expression to check the exception type
A concise-as-possible description of when this rule is violated. If there’s a lot to explain, begin with “A violation of this rule occurs when…”
Explain why the user should care about the violation.
To fix a violation of this rule, [describe how to fix a violation].
Example(s) of code that violates the rule.
Example(s) of code that does not violate the rule.
If the severity of your analyzer isn’t Warning, delete this section.
#pragma warning disable xUnit0000 // <Rule name> #pragma warning restore xUnit0000 // <Rule name>