Class XunitTest
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
An implementation of ITest for xUnit v3.
public class XunitTest : IXunitTest, ITest, ITestMetadata
- Inheritance
-
XunitTest
- Implements
- Inherited Members
Constructors
- XunitTest(IXunitTestCase, IXunitTestMethod, bool?, string?, string, int, IReadOnlyDictionary<string, IReadOnlyCollection<string>>, int?, object?[])
Initializes a new instance of the XunitTest class.
- XunitTest(IXunitTestCase, IXunitTestMethod, bool?, string?, string, string, IReadOnlyDictionary<string, IReadOnlyCollection<string>>?, int?, object?[]?)
This constructor is for testing purposes only. Do not use in production code.
Properties
- Explicit
Gets a flag indicating whether this test was marked as explicit or not.
- SkipReason
Gets a skip reason for this test.
- TestCase
Gets the xUnit v3 test case.
- TestDisplayName
Gets the display name of the test.
- TestMethod
Gets the test method to run. May different from the test method embedded in the test case.
- TestMethodArguments
Gets the arguments to be passed to the test method during invocation.
- Timeout
Gets the timeout for the test, in milliseconds; if
0, there is no timeout.
- Traits
Gets the trait values associated with this test case. If there are none, or the framework does not support traits, this should return an empty dictionary (not
null).
- UniqueID
Gets a unique identifier for the test.