Interface IXunitTestClass
Represents a test class from xUnit.net v3 based on reflection.
public interface IXunitTestClass : ITestClass, ITestClassMetadata
- Inherited Members
Properties
BeforeAfterTestAttributes
Gets the IBeforeAfterTestAttributes attached to the test class (and the test collection and test assembly).
IReadOnlyCollection<IBeforeAfterTestAttribute> BeforeAfterTestAttributes { get; }
Property Value
Class
Gets the type that this test class refers to.
Type Class { get; }
Property Value
Remarks
This should only be used to execute a test class. All reflection should be abstracted here instead for better testability.
ClassFixtureTypes
Gets a list of class fixture types associated with the test class (and the test collection).
IReadOnlyCollection<Type> ClassFixtureTypes { get; }
Property Value
Constructors
Gets the public constructors on the test class. If the test class is static, will return null.
IReadOnlyCollection<ConstructorInfo>? Constructors { get; }
Property Value
Methods
Gets the public methods on the test class.
IReadOnlyCollection<MethodInfo> Methods { get; }
Property Value
TestCaseOrderer
Gets the test case orderer for the test class, if present.
ITestCaseOrderer? TestCaseOrderer { get; }
Property Value
TestCollection
Gets the test collection this test class belongs to.
IXunitTestCollection TestCollection { get; }