Table of Contents

Class SkipAsserts

Namespace
Asserts
Assembly
xunit.v3.assert.dll
public class SkipAsserts
Inheritance
SkipAsserts
Inherited Members

Methods

Skip(string)

Skips the current test. Used when determining whether a test should be skipped happens at runtime rather than at discovery time.

public static void Skip(string reason)

Parameters

reason string

The message to indicate why the test was skipped

Examples

Add an example for this method ?

Contribution guide.

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

Examples

Add an example for this method ?

Contribution guide.

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

Examples

Add an example for this method ?

Contribution guide.