Testing Exceptions with xUnit and Actions
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 …