ExpectationFailedException Class

An assertion of Expectations.Expect or Expectations.Expect is still false after its timeout.

public sealed class ExpectationFailedException : Exception
Inheritance
Exception ExpectationFailedException

Constructors

NameDescription
ExpectationFailedException()Initializes a new instance of the ExpectationFailedException class.
ExpectationFailedException(string)Initializes a new instance of the ExpectationFailedException class.
ExpectationFailedException(string, Exception)Initializes a new instance of the ExpectationFailedException class.

ExpectationFailedException overloads

ExpectationFailedException()

ExpectationFailedException.cs

Initializes a new instance of the ExpectationFailedException class.

public ExpectationFailedException()

ExpectationFailedException(string)

ExpectationFailedException.cs

Initializes a new instance of the ExpectationFailedException class.

public ExpectationFailedException(string message)
Parameters
message string
The message.

ExpectationFailedException(string, Exception)

ExpectationFailedException.cs

Initializes a new instance of the ExpectationFailedException class.

public ExpectationFailedException(string message, Exception innerException)
Parameters
message string
The message.
innerException Exception
The inner exception.