C# Class Xunit.Skip

Static methods for dynamically skipping tests identified with the SkippableFactAttribute.
Afficher le fichier Open project: AArnott/Xunit.SkippableFact Class Usage Examples

Méthodes publiques

Méthode Description
If ( bool condition, string reason = null ) : void

Throws an exception that results in a "Skipped" result for the test.

IfNot ( bool condition, string reason = null ) : void

Throws an exception that results in a "Skipped" result for the test.

Method Details

If() public static méthode

Throws an exception that results in a "Skipped" result for the test.
public static If ( bool condition, string reason = null ) : void
condition bool The condition that must evaluate to true for the test to be skipped.
reason string The explanation for why the test is skipped.
Résultat void

IfNot() public static méthode

Throws an exception that results in a "Skipped" result for the test.
public static IfNot ( bool condition, string reason = null ) : void
condition bool The condition that must evaluate to false for the test to be skipped.
reason string The explanation for why the test is skipped.
Résultat void