Table of Contents

Method FromException

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

FromException(Exception, string, string, string?, string?)

Creates a new ITestMethodCleanupFailure constructed from an Exception object.

public static ITestMethodCleanupFailure FromException(Exception ex, string assemblyUniqueID, string testCollectionUniqueID, string? testClassUniqueID, string? testMethodUniqueID)

Parameters

ex Exception

The exception to use

assemblyUniqueID string

The unique ID of the assembly

testCollectionUniqueID string

The unique ID of the test collectioon

testClassUniqueID string

The (optional) unique ID of the test class

testMethodUniqueID string

The (optional) unique ID of the test method

Returns