Method FromException
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
FromException(Exception, string, string, string?, string?, string, string)
Creates a new ITestCleanupFailure constructed from an Exception object.
public static ITestCleanupFailure FromException(Exception ex, string assemblyUniqueID, string testCollectionUniqueID, string? testClassUniqueID, string? testMethodUniqueID, string testCaseUniqueID, string testUniqueID)
Parameters
ex
ExceptionThe exception to use
assemblyUniqueID
stringThe unique ID of the assembly
testCollectionUniqueID
stringThe unique ID of the test collectioon
testClassUniqueID
stringThe (optional) unique ID of the test class
testMethodUniqueID
stringThe (optional) unique ID of the test method
testCaseUniqueID
stringThe unique ID of the test case
testUniqueID
stringThe unique ID of the test