generated from dailydevops/template-dotnet
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFeatureAttribute.cs
More file actions
31 lines (27 loc) · 1.06 KB
/
FeatureAttribute.cs
File metadata and controls
31 lines (27 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace NetEvolve.Extensions.TUnit;
using System;
using NetEvolve.Extensions.TUnit.Internal;
/// <summary>
/// Attribute used to decorate a test class or method as <b>Feature</b>, with optional Id
/// </summary>
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public sealed class FeatureAttribute : CategoryWithIdTraitBaseAttribute
{
/// <summary>
/// Initializes a new instance of the <see cref="FeatureAttribute"/> class.
/// </summary>
public FeatureAttribute()
: base(Internals.Feature, null) { }
/// <summary>
/// Initializes a new instance of the <see cref="FeatureAttribute"/> class.
/// </summary>
/// <param name="id">Feature Id</param>
public FeatureAttribute(string? id)
: base(Internals.Feature, id) { }
/// <summary>
/// Initializes a new instance of the <see cref="FeatureAttribute"/> class.
/// </summary>
/// <param name="id">Feature Id</param>
public FeatureAttribute(long id)
: base(Internals.Feature, id) { }
}