zplCore.comzplCore.com

ZplAssertionScope

public sealed class ZplAssertionScope : IDisposable

Collects every failed label assertion inside the scope and throws them together when the scope is disposed, so one test run shows all problems of a label (like FluentAssertions' AssertionScope). Scopes flow with async calls.

Constructors

SignatureDescription
# ZplAssertionScope()Opens a scope (nested scopes report to the outermost one).

Properties

PropertyTypeDescription
Failures { get; }IReadOnlyList<ZplAssertionFailure>Failures collected so far.

Methods

Method SignatureReturnsDescription
# Dispose()voidCloses the scope and throws when assertions failed.