Class ProtoTestAssembly

Namespace
ProtoTest.MSTest
Assembly
ProtoTest.MSTest.dll

Abstract base class for MSTest assembly configuration. Manages the root ProtoHost lifecycle for the assembly.

public abstract class ProtoTestAssembly : ProtoTestAssemblyHost<ProtoTestAssembly>, IProtoTestAssemblyHost<ProtoTestAssembly>
Inheritance
ProtoTestAssembly
Implements
Inherited Members
Extension Methods

Methods

CleanupAsync()

Stops and disposes the global ProtoHost asynchronously and cleans up assembly-wide resources. Call this inside your assembly-cleanup method.

protected static Task CleanupAsync()

Returns

Task

InitializeAsync(Action<IProtoHostBuilder>)

Initializes and starts the global ProtoHost asynchronously for the test assembly. Call this inside your assembly-initialize method.

protected static Task InitializeAsync(Action<IProtoHostBuilder> configure)

Parameters

configure Action<IProtoHostBuilder>

Delegate to configure services and hooks via IProtoHostBuilder.

Returns

Task

Exceptions

InvalidOperationException

Thrown if the host has already been initialized.