Class ProtoAttribute

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

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

int

Methods

AfterTestAsync(ProtoExecutionContext)

Executed asynchronously after the decorated test or class tests complete.

public virtual Task AfterTestAsync(ProtoExecutionContext context)

Parameters

context ProtoExecutionContext

Returns

Task

BeforeTestAsync(ProtoExecutionContext)

Executed asynchronously before the decorated test or class tests execute.

public virtual Task BeforeTestAsync(ProtoExecutionContext context)

Parameters

context ProtoExecutionContext

Returns

Task