Skip to content

PgPropertyException

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Reports a property that failed, with the smallest failing input found and the seed that reproduces it.

public sealed class PgPropertyException : Exception, ISerializable

Inheritance: object, Exception

Implements: ISerializable

Creates a property failure without details.

public PgPropertyException()

Creates a property failure with a message.

public PgPropertyException(string message)

Parameters:

message — string

The message.

Creates a property failure with a message and its cause.

public PgPropertyException(string message, Exception innerException)

Parameters:

message — string

The message.

innerException — Exception

The failure of the smallest input.

Gets the smallest failing input found, formatted for display, or empty when no input failed.

public string Input { get; }

Value: string

Gets the number of cases that passed before the first failure.

public int PassedCases { get; }

Value: int

Gets the seed that reproduces the run through Seed.

public ulong Seed { get; }

Value: ulong

Gets the number of test runs spent shrinking the failing input.

public int ShrinkRuns { get; }

Value: int