Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 609 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 609 Bytes

Xunit.SkippableFact

This project allows for Xunit tests that can determine during execution that they should report a "skipped" result. This can be useful when a precondition is not satisfied, or the test is over functionality that does not exist on the platform being tested.

Installation

This project is available as a NuGet package

Example

[SkippableFact]
public void SomeTestForWindowsOnly()
{
    Skip.IfNot(Environment.IsWindows);

    // Test Windows only functionality.
}