Table of Contents

Class GovernanceContractViolationException

Namespace
AsiBackbone.Testing.Contracts
Assembly
AsiBackbone.Testing.dll

Represents a reusable AsiBackbone contract-test invariant failure.

public sealed class GovernanceContractViolationException : InvalidOperationException, ISerializable
Inheritance
GovernanceContractViolationException
Implements
Inherited Members

Remarks

Contract helpers throw this exception instead of binding the testing package to a specific unit-test framework. xUnit, NUnit, MSTest, and custom harnesses can assert on this exception type while sharing the same invariant checks.

Constructors

GovernanceContractViolationException(string)

Initializes a new instance of the GovernanceContractViolationException class.

public GovernanceContractViolationException(string message)

Parameters

message string

The contract failure message.

GovernanceContractViolationException(string, Exception)

Initializes a new instance of the GovernanceContractViolationException class.

public GovernanceContractViolationException(string message, Exception innerException)

Parameters

message string

The contract failure message.

innerException Exception

The implementation exception that triggered the contract failure.