.NET API
TraconAssertionException
Namespace Tracon.Testing · Assembly
Tracon.Testing.dllThrown when a RunAssertions assertion is not met.
public sealed class TraconAssertionException : TraconException, ISerializable- Inheritance
- object ← Exception ← TraconException ← TraconAssertionException
- Implements
- ISerializable
- Inherited Members
- 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()
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”TraconAssertionException()
Section titled “ TraconAssertionException()”Creates a new assertion failure.
public TraconAssertionException()TraconAssertionException(string)
Section titled “ TraconAssertionException(string)”Creates a new assertion failure.
public TraconAssertionException(string message)Parameters
Section titled “Parameters”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)Parameters
Section titled “Parameters”message string
Message describing the expected and actual value.
innerException Exception
The underlying error.