Table of Contents

Method GetSkipReason

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

GetSkipReason(Exception?)

Gets the runtime skip reason for the test.

public virtual string? GetSkipReason(Exception? exception)

Parameters

exception Exception

The exception that was thrown during test invocation

Returns

string

The skip reason, if the test is skipped; null, otherwise