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

NUnitException

public class NUnitException : Exception
Thrown when an assertion failed. Here to preserve the inner exception and hence its stack trace.
using System; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace NUnit.Framework.Internal { [Serializable] [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class NUnitException : Exception { public NUnitException() { } public NUnitException(string message) : base(message) { } public NUnitException(string message, [System.Runtime.CompilerServices.Nullable(2)] Exception inner) : base(message, inner) { } protected NUnitException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }