Class RequiresDeviceAttribute<TDevice>
Skips a test when the environment does not provide a device of this type.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class RequiresDeviceAttribute<TDevice> : RequiresCapabilityAttribute, IProtoSkipCondition where TDevice : ProtoDevice
Type Parameters
TDevice
- Inheritance
-
RequiresDeviceAttribute<TDevice>
- Implements
- Inherited Members
- Extension Methods
Examples
[RequiresDevice<AcCharger>]
public async Task ...() { ... }
Constructors
RequiresDeviceAttribute()
public RequiresDeviceAttribute()
Properties
DefaultReason
protected override string DefaultReason { get; }