| | | 1 | | using ArturRios.Configuration.Enums; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Util.Test.Attributes; |
| | | 4 | | |
| | | 5 | | /// <summary>Marks a unit test fact that can be scoped to specific environments. Stamps the <c>Category=Unit</c> trait.< |
| | | 6 | | /// <param name="environments">Environments in which the test must not run. <c>null</c> imposes no restriction.</param> |
| | | 7 | | /// <param name="skipCondition">When <c>true</c>, the test is skipped regardless of the environment.</param> |
| | | 8 | | public class UnitFactAttribute(EnvironmentType[]? environments = null, bool skipCondition = false) |
| | | 9 | | : CustomFactAttribute(TestType.Unit, environments, skipCondition); |
| | | 10 | | |
| | | 11 | | /// <summary>Marks a unit test theory that can be scoped to specific environments. Stamps the <c>Category=Unit</c> trait |
| | | 12 | | /// <param name="environments">Environments in which the test must not run. <c>null</c> imposes no restriction.</param> |
| | | 13 | | /// <param name="skipCondition">When <c>true</c>, the test is skipped regardless of the environment.</param> |
| | | 14 | | public class UnitTheoryAttribute(EnvironmentType[]? environments = null, bool skipCondition = false) |
| | | 15 | | : CustomTheoryAttribute(TestType.Unit, environments, skipCondition); |
| | | 16 | | |
| | | 17 | | /// <summary>Marks a functional test fact that can be scoped to specific environments. Stamps the <c>Category=Functional |
| | | 18 | | /// <param name="environments">Environments in which the test must not run. <c>null</c> imposes no restriction.</param> |
| | | 19 | | /// <param name="skipCondition">When <c>true</c>, the test is skipped regardless of the environment.</param> |
| | | 20 | | public class FunctionalFactAttribute(EnvironmentType[]? environments = null, bool skipCondition = false) |
| | | 21 | | : CustomFactAttribute(TestType.Functional, environments, skipCondition); |
| | | 22 | | |
| | | 23 | | /// <summary>Marks a functional test theory that can be scoped to specific environments. Stamps the <c>Category=Function |
| | | 24 | | /// <param name="environments">Environments in which the test must not run. <c>null</c> imposes no restriction.</param> |
| | | 25 | | /// <param name="skipCondition">When <c>true</c>, the test is skipped regardless of the environment.</param> |
| | | 26 | | public class FunctionalTheoryAttribute(EnvironmentType[]? environments = null, bool skipCondition = false) |
| | 3 | 27 | | : CustomTheoryAttribute(TestType.Functional, environments, skipCondition); |