Class ProtoAttribute
Base attribute for defining test-level or class-level lifecycle execution hooks.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public abstract class ProtoAttribute : Attribute
- Inheritance
-
ProtoAttribute
- Derived
- Inherited Members
- Extension Methods
Properties
Order
Order of execution for the attribute. Lower values are executed earlier in the lifecycle.
public int Order { get; init; }
Property Value
Methods
AfterTestAsync(ProtoExecutionContext)
Executed asynchronously after the decorated test or class tests complete.
public virtual Task AfterTestAsync(ProtoExecutionContext context)
Parameters
contextProtoExecutionContext
Returns
BeforeTestAsync(ProtoExecutionContext)
Executed asynchronously before the decorated test or class tests execute.
public virtual Task BeforeTestAsync(ProtoExecutionContext context)
Parameters
contextProtoExecutionContext