zplCore.comzplCore.com

ZplAssertionException

public sealed class ZplAssertionException : Exception

Thrown when a label assertion fails. Works with every test framework (any exception fails a test); see ZplAssertSettings.ExceptionFactory and ZplTestFrameworks to throw the framework's own assertion exception instead. ZplAssertionException.Failures holds the structured results.

Constructors

SignatureDescription
# ZplAssertionException(IReadOnlyList<ZplAssertionFailure> failures)Creates the exception for one or more failures.

Properties

PropertyTypeDescription
Failures { get; }IReadOnlyList<ZplAssertionFailure>Every failure (more than one inside a ZplAssertionScope).