Table of Contents

Method SkipUnless

Namespace
Xunit
Assembly
xunit.v3.assert.dll

SkipUnless(bool, string)

Will skip the current test unless condition evaluates to true.

public static void SkipUnless(bool condition, string reason)

Parameters

condition bool

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

reason string

The message to indicate why the test was skipped