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

ResultStateException

public abstract class ResultStateException : Exception
Abstract base for Exceptions that terminate a test and provide a ResultState.
using NUnit.Framework.Interfaces; using System; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace NUnit.Framework { [Serializable] [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class ResultStateException : Exception { public abstract ResultState ResultState { get; } protected ResultStateException(string message) : base(message) { } public ResultStateException(string message, [System.Runtime.CompilerServices.Nullable(2)] Exception inner) : base(message, inner) { } protected ResultStateException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }