Interface IXunitTestAssembly
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
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
BeforeAfterTestAttributes
Gets the IBeforeAfterTestAttributes attached to the test assembly.
IReadOnlyCollection<IBeforeAfterTestAttribute> BeforeAfterTestAttributes { get; }
Property Value
CollectionBehavior
Gets the collection behavior associated with the assembly, if present.
ICollectionBehaviorAttribute? CollectionBehavior { get; }
Property Value
CollectionDefinitions
Gets the collection definitions attached to the test assembly, by collection name.
IReadOnlyDictionary<string, (Type Type, CollectionDefinitionAttribute Attribute)> CollectionDefinitions { get; }
Property Value
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
TestCaseOrderer
Gets the test case orderer for the test assembly, if present.
ITestCaseOrderer? TestCaseOrderer { get; }
Property Value
TestCollectionOrderer
Gets the test collection orderer for the test assembly, if present.
ITestCollectionOrderer? TestCollectionOrderer { get; }
Property Value
Version
Gets the assembly version.
Version Version { get; }