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
exExceptionThe exception to use
assemblyUniqueIDstringThe unique ID of the assembly
testCollectionUniqueIDstringThe unique ID of the test collectioon
testClassUniqueIDstringThe (optional) unique ID of the test class
testMethodUniqueIDstringThe (optional) unique ID of the test method
testCaseUniqueIDstringThe unique ID of the test case