Ferrous API Reference

All Types / Ferrous.Testing

class FerrousAssertionException

public sealed class FerrousAssertionException : Exception

Exception thrown when a Ferrous test assertion fails. Framework-agnostic so it works seamlessly with xUnit, NUnit, MSTest, and TUnit.

Constructors

public FerrousAssertionException(string message)

Initializes a new instance of the FerrousAssertionException class with a message.

Parameters
message
The failure message describing the failed assertion.
public FerrousAssertionException(string message, Exception innerException)

Initializes a new instance of the FerrousAssertionException class with a message and inner exception.

Parameters
message
The failure message describing the failed assertion.
innerException
The inner exception that caused the failure.