Testing Exceptions with xUnit and Actions

added by DotNetKicks
4/14/2021 1:49:17 PM

604 Views

If a method you're writing throws exceptions under certain circumstances, such as through guard clauses or other expected conditions, be sure to write tests to verify this behavior. The xUnit test framework has great support for this, and using Actions helps make the tests cleaner.


0 comments