Table of Contents

Interface IXunitTestAssembly

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

Represents a test assembly from xUnit.net v3 based on reflection.

public interface IXunitTestAssembly : ITestAssembly, IAssemblyMetadata
Inherited Members

Properties

Assembly

Gets the assembly of this test assembly.

Assembly Assembly { get; }

Property Value

Assembly

Remarks

This should only be used to execute a test assembly. All reflection should be abstracted here instead for better testability.

AssemblyFixtureTypes

Gets a list of fixture types associated with the test assembly.

IReadOnlyCollection<Type> AssemblyFixtureTypes { get; }

Property Value

IReadOnlyCollection<Type>

BeforeAfterTestAttributes

Gets the IBeforeAfterTestAttributes attached to the test assembly.

IReadOnlyCollection<IBeforeAfterTestAttribute> BeforeAfterTestAttributes { get; }

Property Value

IReadOnlyCollection<IBeforeAfterTestAttribute>

CollectionBehavior

Gets the collection behavior associated with the assembly, if present.

ICollectionBehaviorAttribute? CollectionBehavior { get; }

Property Value

ICollectionBehaviorAttribute

CollectionDefinitions

Gets the collection definitions attached to the test assembly, by collection name.

IReadOnlyDictionary<string, (Type Type, CollectionDefinitionAttribute Attribute)> CollectionDefinitions { get; }

Property Value

IReadOnlyDictionary<string, (Type Type, CollectionDefinitionAttribute Attribute)>

TargetFramework

Gets the target framework the test assembly was compiled against. Will be in a form like ".NETFramework,Version=v4.7.2" or ".NETCoreApp,Version=v6.0".

string TargetFramework { get; }

Property Value

string

TestCaseOrderer

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

ITestCaseOrderer? TestCaseOrderer { get; }

Property Value

ITestCaseOrderer

TestCollectionOrderer

Gets the test collection orderer for the test assembly, if present.

ITestCollectionOrderer? TestCollectionOrderer { get; }

Property Value

ITestCollectionOrderer

Version

Gets the assembly version.

Version Version { get; }

Property Value

Version