Skip to content

AgentPrismAssertionException

Namespace AgentPrism.Testing · Assembly AgentPrism.Testing.dll

Thrown when a RunAssertions assertion is not met.

public sealed class AgentPrismAssertionException : AgentPrismException, ISerializable

objectExceptionAgentPrismExceptionAgentPrismAssertionException

ISerializable

AgentPrismException.ErrorType, Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Every test framework (xunit, NUnit, MSTest) counts a thrown exception as a test failure; the package binds to no other framework.

Creates a new assertion failure.

public AgentPrismAssertionException()

Creates a new assertion failure.

public AgentPrismAssertionException(string message)

message string

Message describing the expected and actual value.

AgentPrismAssertionException(string, Exception)

Section titled “ AgentPrismAssertionException(string, Exception)”

Creates a new assertion failure.

public AgentPrismAssertionException(string message, Exception innerException)

message string

Message describing the expected and actual value.

innerException Exception

The underlying error.