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

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; namespace NUnit.Framework { [Serializable] [NullableContext(1)] [Nullable(0)] public abstract class ResultStateException : Exception { public abstract ResultState ResultState { get; } protected ResultStateException(string message) : base(message) { } public ResultStateException(string message, [Nullable(2)] Exception inner) : base(message, inner) { } } }