Class Skip
- Namespace
- Xunit
- Assembly
- Xunit.SkippableFact.dll
Static methods for dynamically skipping tests identified with the SkippableFactAttribute.
public static class Skip
- Inheritance
-
Skip
- Inherited Members
Methods
If(bool, string?)
Throws an exception that results in a "Skipped" result for the test.
public static void If(bool condition, string? reason = null)
Parameters
condition
boolThe condition that must evaluate to
true
for the test to be skipped.reason
stringThe explanation for why the test is skipped.
IfNot(bool, string?)
Throws an exception that results in a "Skipped" result for the test.
public static void IfNot(bool condition, string? reason = null)