Skip to content

PromptAssertionException

NexusLabs.Needlr.AgentFramework.Testing

PromptAssertionException Class

Thrown by PromptAssert methods when a prompt integrity assertion fails.

public sealed class PromptAssertionException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 PromptAssertionException

Remarks

This exception is framework-agnostic — it does not depend on xUnit, NUnit, or MSTest. Any test runner will surface it as a failed test with the descriptive message.

Constructors

PromptAssertionException(string) Constructor

Initializes a new instance of the PromptAssertionException class with the specified failure message.

public PromptAssertionException(string message);

Parameters

message System.String

A description of the assertion failure.