To check that something is throwing, for example, an ArgumentException , I can do this:
Assert.Throws<ArgumentException>(() => dog.BarkAt(deafDog));
How can I verify that ParamName true in a clear way? And the bonus question: or can you recommend not testing it at all?
c # properties exception nunit
Svish
source share