Table of Contents

Method SkipWhen

Namespace
Xunit
Assembly
xunit.v3.assert.dll

SkipWhen(bool, string)

Will skip the current test when condition evaluates to true.

public static void SkipWhen(bool condition, string reason)

Parameters

condition bool

When true, the test will be skipped; when false, the test will continue to run

reason string

The message to indicate why the test was skipped