Table of Contents

Interface IXunitTestClass

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

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

IReadOnlyCollection<IBeforeAfterTestAttribute>

Class

Gets the type that this test class refers to.

Type Class { get; }

Property Value

Type

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

IReadOnlyCollection<Type>

Constructors

Gets the public constructors on the test class. If the test class is static, will return null.

IReadOnlyCollection<ConstructorInfo>? Constructors { get; }

Property Value

IReadOnlyCollection<ConstructorInfo>

Methods

Gets the public methods on the test class.

IReadOnlyCollection<MethodInfo> Methods { get; }

Property Value

IReadOnlyCollection<MethodInfo>

TestCaseOrderer

Gets the test case orderer for the test class, if present.

ITestCaseOrderer? TestCaseOrderer { get; }

Property Value

ITestCaseOrderer

TestCollection

Gets the test collection this test class belongs to.

IXunitTestCollection TestCollection { get; }

Property Value

IXunitTestCollection