Xunit v3 Migration | Xunit.SkippableFact (original) (raw)
Xunit v3 has skipping built-in, so there is no need for Xunit.SkippableFact. As part of upgrading from Xunit v2 to v3, you should remove your package reference on Xunit.SkippableFact.
The following provides a guide for switching your use of Xunit.SkippableFact to Xunit v3 when you update your Xunit dependency.
| Xunit.SkippableFact API | Xunit v3 API |
|---|---|
| If | Assert.SkipWhen |
| IfNot | Assert.SkipUnless |
| SkipException | Xunit.Sdk.SkipException |
| SkippableFactAttribute | Xunit.FactAttribute1 |
| SkippableTheoryAttribute | Xunit.TheoryAttribute1 |