Table of Contents

Method FromException

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

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

Creates a new ITestCaseCleanupFailure constructed from an Exception object.

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

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

testCaseUniqueID string

The unique ID of the test case

Returns