AgentPrismAssertionException
AgentPrism.Testing.dllThrown when a RunAssertions assertion is not met.
public sealed class AgentPrismAssertionException : AgentPrismException, ISerializableInheritance
Section titled “Inheritance”object ← Exception ← AgentPrismException ← AgentPrismAssertionException
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”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()
Remarks
Section titled “Remarks”Every test framework (xunit, NUnit, MSTest) counts a thrown exception as a test failure; the package binds to no other framework.
Constructors
Section titled “Constructors”AgentPrismAssertionException()
Section titled “ AgentPrismAssertionException()”Creates a new assertion failure.
public AgentPrismAssertionException()AgentPrismAssertionException(string)
Section titled “ AgentPrismAssertionException(string)”Creates a new assertion failure.
public AgentPrismAssertionException(string message)Parameters
Section titled “Parameters”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)Parameters
Section titled “Parameters”message string
Message describing the expected and actual value.
innerException Exception
The underlying error.