Skip to content
Tracon

TraconAssertionException

Namespace Tracon.Testing · Assembly Tracon.Testing.dll

Thrown when a RunAssertions assertion is not met.

public sealed class TraconAssertionException : TraconException, ISerializable

objectExceptionTraconExceptionTraconAssertionException

ISerializable

TraconException.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 TraconAssertionException()

Creates a new assertion failure.

public TraconAssertionException(string message)

message string

Message describing the expected and actual value.

TraconAssertionException(string, Exception)

Section titled “ TraconAssertionException(string, Exception)”

Creates a new assertion failure.

public TraconAssertionException(string message, Exception innerException)

message string

Message describing the expected and actual value.

innerException Exception

The underlying error.