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
reasonstringThe 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
conditionboolWhen
true, the test will continue to run; whenfalse, the test will be skippedreasonstringThe 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
conditionboolWhen
true, the test will be skipped; whenfalse, the test will continue to runreasonstringThe message to indicate why the test was skipped
Examples
Add an example for this method ?
Contribution guide.