<PackageReference Include="NUnit" Version="5.0.0" />

NUnit.Framework.Constraints.ThrowsConstraint

ThrowsConstraint is used to test the exception thrown by a delegate by applying a constraint to it.
namespace NUnit.Framework.Constraints { }