< Summary

Information
Class: AsiBackbone.Testing.Contracts.AsiBackboneContractViolationException
Assembly: AsiBackbone.Testing
File(s): /home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.Testing/Contracts/AsiBackboneContractViolationException.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 30
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.Testing/Contracts/AsiBackboneContractViolationException.cs

#LineLine coverage
 1namespace AsiBackbone.Testing.Contracts;
 2
 3/// <summary>
 4/// Represents a reusable AsiBackbone contract-test invariant failure.
 5/// </summary>
 6/// <remarks>
 7/// Contract helpers throw this exception instead of binding the testing package to a specific unit-test framework.
 8/// xUnit, NUnit, MSTest, and custom harnesses can assert on this exception type while sharing the same invariant checks
 9/// </remarks>
 10public sealed class AsiBackboneContractViolationException : InvalidOperationException
 11{
 12    /// <summary>
 13    /// Initializes a new instance of the <see cref="AsiBackboneContractViolationException" /> class.
 14    /// </summary>
 15    /// <param name="message">The contract failure message.</param>
 16    public AsiBackboneContractViolationException(string message)
 10217        : base(message)
 18    {
 10219    }
 20
 21    /// <summary>
 22    /// Initializes a new instance of the <see cref="AsiBackboneContractViolationException" /> class.
 23    /// </summary>
 24    /// <param name="message">The contract failure message.</param>
 25    /// <param name="innerException">The implementation exception that triggered the contract failure.</param>
 26    public AsiBackboneContractViolationException(string message, Exception innerException)
 1227        : base(message, innerException)
 28    {
 1229    }
 30}