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

NUnitException

public class NUnitException : Exception
Thrown when an assertion failed. Here to preserve the inner exception and hence its stack trace.
using System; namespace NUnit.Framework.Internal { public class NUnitException : Exception { public NUnitException() { } public NUnitException(string message) : base(message) { } public NUnitException(string message, Exception inner) : base(message, inner) { } } }