Interface IProtoTestHook

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

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

int

Methods

AfterTestAsync(ProtoExecutionContext)

Executed asynchronously after a test completes.

Task AfterTestAsync(ProtoExecutionContext context)

Parameters

context ProtoExecutionContext

Returns

Task

BeforeTestAsync(ProtoExecutionContext)

Executed asynchronously before a test starts.

Task BeforeTestAsync(ProtoExecutionContext context)

Parameters

context ProtoExecutionContext

Returns

Task