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

ThrowsExceptionConstraint

ThrowsExceptionConstraint tests that an exception has been thrown, without any further tests.
/* Error decompiling System.Void NUnit.Framework.Constraints.ThrowsExceptionConstraint/ThrowsExceptionConstraintResult::WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter) */