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
conditionboolThe condition that must evaluate to
truefor the test to be skipped.reasonstringThe 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)