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

ResultState

public class 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.
public static readonly ResultState Cancelled

The test was cancelled by the user

public static readonly ResultState ChildFailure

A suite failed because one or more child tests failed or had errors

public static readonly ResultState Error

The test encountered an unexpected exception

public static readonly ResultState Explicit

The test was skipped because it is explicit

public static readonly ResultState Failure

The test failed

public static readonly ResultState Ignored

The test has been ignored.

public static readonly ResultState Inconclusive

The result is inconclusive

public static readonly ResultState NotRunnable

The test was not runnable.

public static readonly ResultState SetUpError

A suite had an unexpected exception in its OneTimeSetUp

public static readonly ResultState SetUpFailure

A suite failed in its OneTimeSetUp

public static readonly ResultState Skipped

The test has been skipped.

public static readonly ResultState Success

The test succeeded

public static readonly ResultState TearDownError

A suite had an unexpected exception in its OneTimeDown

public string Label { get; }

Gets the label under which this test result is categorized, if any.

public FailureSite Site { get; }

Gets the stage of test execution in which the failure or other result took place.

public TestStatus Status { get; }

Gets the TestStatus for the test.

public ResultState(TestStatus status)

Initializes a new instance of the ResultState class.

public ResultState(TestStatus status, string label)

Initializes a new instance of the ResultState class.

public ResultState(TestStatus status, FailureSite site)

Initializes a new instance of the ResultState class.

public ResultState(TestStatus status, string label, FailureSite site)

Initializes a new instance of the ResultState class.

Get a new ResultState, which is the same as the current one but with the FailureSite set to the specified value.