< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Testing.PromptAssertionException
Assembly: NexusLabs.Needlr.AgentFramework.Testing
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Testing/PromptAssertionException.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 20
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%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Testing/PromptAssertionException.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Testing;
 2
 3/// <summary>
 4/// Thrown by <see cref="PromptAssert"/> methods when a prompt integrity assertion fails.
 5/// </summary>
 6/// <remarks>
 7/// This exception is framework-agnostic — it does not depend on xUnit, NUnit, or MSTest.
 8/// Any test runner will surface it as a failed test with the descriptive message.
 9/// </remarks>
 10public sealed class PromptAssertionException : Exception
 11{
 12    /// <summary>
 13    /// Initializes a new instance of the <see cref="PromptAssertionException"/> class
 14    /// with the specified failure message.
 15    /// </summary>
 16    /// <param name="message">A description of the assertion failure.</param>
 1017    public PromptAssertionException(string message) : base(message)
 18    {
 1019    }
 20}

Methods/Properties

.ctor(System.String)