< Summary

Information
Class: ArturRios.Util.Test.Attributes.UnitTheoryAttribute
Assembly: ArturRios.Util.Test
File(s): D:\Repositories\dotnet-test-util\src\Attributes\CustomAttributes.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 27
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Fully covered methods: 1
Total methods: 1
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

D:\Repositories\dotnet-test-util\src\Attributes\CustomAttributes.cs

#LineLine coverage
 1using ArturRios.Configuration.Enums;
 2
 3namespace 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>
 8public 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>
 14public class UnitTheoryAttribute(EnvironmentType[]? environments = null, bool skipCondition = false)
 315    : 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>
 20public 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>
 26public class FunctionalTheoryAttribute(EnvironmentType[]? environments = null, bool skipCondition = false)
 27    : CustomTheoryAttribute(TestType.Functional, environments, skipCondition);