C# Class Xunit.Skip

Static methods for dynamically skipping tests identified with the SkippableFactAttribute.
ファイルを表示 Open project: AArnott/Xunit.SkippableFact Class Usage Examples

Public Methods

Method 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 method

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.
return void

IfNot() public static method

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.
return void