Table of Contents

Class TestFailedException

Namespace
Acuit.Pinpoint.Workflows.Testing
Assembly
Acuit.Pinpoint.Workflows.Testing.dll

The exception that is thrown when a test fails.

public class TestFailedException : WorkflowException, ISerializable
Inheritance
TestFailedException
Implements
Inherited Members

Constructors

TestFailedException()

Initializes a new instance of the TestFailedException class.

public TestFailedException()

TestFailedException(string?)

Initializes a new instance of the TestFailedException class with a specified error message.

public TestFailedException(string? message)

Parameters

message string

The message that describes the error.

TestFailedException(string?, Exception?)

Initializes a new instance of the TestFailedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public TestFailedException(string? message, Exception? inner)

Parameters

message string

The message that describes the error.

inner Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

TestFailedException(string?, string?)

Initializes a new instance of the TestFailedException class with a specified error message and test fail reason.

public TestFailedException(string? message, string? reason)

Parameters

message string

The message that describes the error.

reason string

The test failure reason.

TestFailedException(string?, string?, Exception?)

Initializes a new instance of the TestFailedException class with a specified error message, test fail reason, and a reference to the inner exception that is the cause of this exception.

public TestFailedException(string? message, string? reason, Exception? inner)

Parameters

message string

The message that describes the error.

reason string

The test failure reason.

inner Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

Properties

Reason

Gets the test failure reason.

public string? Reason { get; }

Property Value

string

Methods

CreateLogged(ITestLog?)

public static TestFailedException CreateLogged(ITestLog? testLog)

Parameters

testLog ITestLog

Returns

TestFailedException

CreateLogged(ITestLog?, string?, string?)

public static TestFailedException CreateLogged(ITestLog? testLog, string? message, string? reason)

Parameters

testLog ITestLog
message string
reason string

Returns

TestFailedException

CreateLogged(ITestLog?, string?, string?, Exception?)

public static TestFailedException CreateLogged(ITestLog? testLog, string? message, string? reason, Exception? inner)

Parameters

testLog ITestLog
message string
reason string
inner Exception

Returns

TestFailedException

CreateLoggedFromReason(ITestLog?, string?)

public static TestFailedException CreateLoggedFromReason(ITestLog? testLog, string? reason)

Parameters

testLog ITestLog
reason string

Returns

TestFailedException

CreateLoggedFromReason(ITestLog?, string?, Exception?)

public static TestFailedException CreateLoggedFromReason(ITestLog? testLog, string? reason, Exception? inner)

Parameters

testLog ITestLog
reason string
inner Exception

Returns

TestFailedException

LogIfNotLoggedYet(ITestLog?)

Logs this exception to a test log if it has not yet been logged to any test log via this method.

public TestFailedException LogIfNotLoggedYet(ITestLog? testLog)

Parameters

testLog ITestLog

The test log, or null to do nothing.

Returns

TestFailedException

This instance.