Enum ProtoCleanupFailureMode

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

What a failing cleanup does to the test the runner reports. Cleanup is the work after the body: after-test hooks and attributes, publishing attachments, releasing resources and disposing clients.

public enum ProtoCleanupFailureMode
Extension Methods

Fields

Fail = 0

The test fails. A body that passed is reported as failed, with a message that says so and names the cleanup failure. A body that failed keeps that failure; the cleanup failures are attached to it. A skipped or unknown body also becomes failed when cleanup fails. This is the default.

Report = 1

The cleanup failure is recorded as a finding and does not change the result the test reported.