Class ProtoCleanupExtensions

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Selects what a failing cleanup does to the test the runner reports.

public static class ProtoCleanupExtensions
Inheritance
ProtoCleanupExtensions
Inherited Members

Methods

ConfigureCleanup(IProtoHostBuilder, Action<ProtoCleanupOptions>)

Chooses whether a failing cleanup fails the test or is only recorded. The default is Fail. The section ProtoTest binds over the code values when the host is built, so ProtoTest:CleanupFailures can select Report.

public static IProtoHostBuilder ConfigureCleanup(this IProtoHostBuilder builder, Action<ProtoCleanupOptions> configure)

Parameters

builder IProtoHostBuilder
configure Action<ProtoCleanupOptions>

Returns

IProtoHostBuilder