Property SkipUnless
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
SkipUnless
Gets the name of a public static property on the test class which returns bool
to indicate whether the test should be skipped (false
) or not (true
).
string? SkipUnless { get; }
Property Value
Remarks
This property cannot be set if SkipWhen is set. Setting both will
result in a failed test.
To ensure compile-time safety and easier refactoring, use the nameof
operator,
e.g., SkipUnless = nameof(IsConditionMet)
.