Interface IProtoTestHook
Defines a lifecycle hook executed before and after each test.
public interface IProtoTestHook
- Extension Methods
Properties
Order
Order of execution for the hook. Lower values are executed earlier in the lifecycle.
int Order { get; }
Property Value
Methods
AfterTestAsync(ProtoExecutionContext)
Executed asynchronously after a test completes.
Task AfterTestAsync(ProtoExecutionContext context)
Parameters
contextProtoExecutionContext
Returns
BeforeTestAsync(ProtoExecutionContext)
Executed asynchronously before a test starts.
Task BeforeTestAsync(ProtoExecutionContext context)
Parameters
contextProtoExecutionContext