Class TestFailed
Default implementation of
Inheritance
TestFailed
Implements
ITestAssemblyMessage
IExecutionMessage
ITestCollectionMessage
ITestClassMessage
ITestMethodMessage
ITestCaseMessage
ITestMessage
ITestResultMessage
ITestFailed
Inherited Members
Namespace: Xunit
Assembly: xunit.runner.utility.dll
Syntax
public class TestFailed : TestResultMessage, ITestAssemblyMessage, IExecutionMessage, ITestCollectionMessage, ITestClassMessage, ITestMethodMessage, ITestCaseMessage, ITestMessage, ITestResultMessage, ITestFailed
Constructors
| Improve this Doc View SourceTestFailed(ITest, Decimal, String, Exception)
Initializes a new instance of the TestFailed class.
Declaration
public TestFailed(ITest test, decimal executionTime, string output, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | |
Decimal | executionTime | |
String | output | |
Exception | ex |
TestFailed(ITest, Decimal, String, String[], String[], String[], Int32[])
Initializes a new instance of the TestFailed class.
Declaration
public TestFailed(ITest test, decimal executionTime, string output, string[] exceptionTypes, string[] messages, string[] stackTraces, int[] exceptionParentIndices)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | |
Decimal | executionTime | |
String | output | |
String[] | exceptionTypes | |
String[] | messages | |
String[] | stackTraces | |
Int32[] | exceptionParentIndices |
Properties
| Improve this Doc View SourceExceptionParentIndices
Declaration
public int[] ExceptionParentIndices { get; }
Property Value
Type | Description |
---|---|
Int32[] |
ExceptionTypes
Declaration
public string[] ExceptionTypes { get; }
Property Value
Type | Description |
---|---|
String[] |
Messages
Declaration
public string[] Messages { get; }
Property Value
Type | Description |
---|---|
String[] |
StackTraces
Declaration
public string[] StackTraces { get; }
Property Value
Type | Description |
---|---|
String[] |
Implements
ITestAssemblyMessage
IExecutionMessage
ITestCollectionMessage
ITestClassMessage
ITestMethodMessage
ITestCaseMessage
ITestMessage
ITestResultMessage
ITestFailed