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

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.Serialization; namespace NUnit.Framework.Internal { [Serializable] public class NUnitException : Exception { public NUnitException() { } public NUnitException(string message) : base(message) { } public NUnitException(string message, Exception inner) : base(message, inner) { } protected NUnitException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }