NUnit.Framework.Interfaces.ResultState
The ResultState class represents the outcome of running a test.
It contains two pieces of information. The Status of the test
is an enum indicating whether the test passed, failed, was
skipped or was inconclusive. The Label provides a more
detailed breakdown for use by client runners.
namespace NUnit.Framework.Interfaces
{
public class ResultState : IEquatable<ResultState>
{
public static readonly ResultState Inconclusive;
public static readonly ResultState Skipped;
public static readonly ResultState Ignored;
public static readonly ResultState Explicit;
public static readonly ResultState Success;
public static readonly ResultState Warning;
public static readonly ResultState Failure;
public static readonly ResultState Error;
public static readonly ResultState Cancelled;
public static readonly ResultState NotRunnable;
public static readonly ResultState ChildFailure;
public static readonly ResultState ChildWarning;
public static readonly ResultState ChildIgnored;
public static readonly ResultState SetUpFailure;
public static readonly ResultState SetUpError;
public static readonly ResultState TearDownError;
public TestStatus Status { get; }
public string Label { get; }
public FailureSite Site { get; }
public ResultState(TestStatus status);
public ResultState(TestStatus status, string label);
public ResultState(TestStatus status, FailureSite site);
public ResultState(TestStatus status, string label, FailureSite site);
public ResultState WithSite(FailureSite site);
public bool Matches(ResultState other);
public bool Equals(ResultState other);
public static bool operator ==(ResultState left, ResultState right);
public static bool operator !=(ResultState left, ResultState right);
}
}