To test that something throws for example an ArgumentException
I can do this:
Assert.Throws<ArgumentException>(() => dog.BarkAt(deafDog));
How can I check that the ParamName
is correct in a clear way? And bonus question: Or would you perhaps perhaps recommend not testing this at all?