Interface IXunitTestCase
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Represents a single test case from xUnit.net v3 based on reflection.
public interface IXunitTestCase : ITestCase, ITestCaseMetadata
- Inherited Members
Properties
- SkipExceptions
Gets the exception types that, when thrown, will cause a
- SkipReason
Gets the display text for the reason a test that might being skipped.
- SkipType
When set, indicates the type to use when resolving SkipUnless or SkipWhen. If not set, uses the test class type.
- SkipUnless
When set, indicates a public static property that is used at runtime to determine whether the test is skipped or not (
true
to run,false
to skip).
- SkipWhen
When set, indicates a public static property that is used at runtime to determine whether the test is skipped or not (
false
to run,true
to skip).
- TestClass
Gets the test class that this test case belongs to.
- TestClassMetadataToken
Gets the MetadataToken for the test class.
- TestClassName
Gets the full name of the class where the test is defined (i.e. FullName).
- TestClassSimpleName
Gets the simple name of the class where the test is defined (i.e. Name).
- TestCollection
Gets the test collection this test case belongs to.
- TestMethod
Gets the test method this test case belongs to.
- TestMethodMetadataToken
Gets the MetadataToken for the test method.
- TestMethodName
Gets the method name where the test is defined.
- TestMethodParameterTypesVSTest
Gets the types for the test method parameters.
- TestMethodReturnTypeVSTest
Gets the test method return type.
- Timeout
Gets the timeout of the test, in milliseconds; if zero or negative, means the test case has no timeout.
Methods
- CreateTests()
Creates the tests that are emitted from this test case. Exceptions thrown here will be caught and converted into a test case failure.
- PostInvoke()
Allows the test case to run some code just after the test case is finished running.
- PreInvoke()
Allows the test case to run some code just before the test case is run.