Table of Contents

Class XunitProjectAssembly

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Represents an assembly in an XunitProject.

public class XunitProjectAssembly
Inheritance
XunitProjectAssembly
Inherited Members

Constructors

XunitProjectAssembly(XunitProject, string, AssemblyMetadata)

Represents an assembly in an XunitProject.

public XunitProjectAssembly(XunitProject project, string assemblyFileName, AssemblyMetadata assemblyMetadata)

Parameters

project XunitProject

The project this assembly belongs to.

assemblyFileName string

The assembly filename

assemblyMetadata AssemblyMetadata

The assembly metadata

Properties

Assembly

Gets or sets the assembly under test. May be null when the test assembly is not loaded into the current AppDomain.

public Assembly? Assembly { get; set; }

Property Value

Assembly

AssemblyDisplayName

Gets the assembly display name.

public string AssemblyDisplayName { get; }

Property Value

string

AssemblyFileName

Gets or sets the assembly file name.

public string AssemblyFileName { get; set; }

Property Value

string

AssemblyMetadata

Gets or sets the metadata about the assembly.

public AssemblyMetadata AssemblyMetadata { get; set; }

Property Value

AssemblyMetadata

ConfigFileName

Gets or sets the config file name.

public string? ConfigFileName { get; set; }

Property Value

string

Configuration

Gets the configuration values for the test assembly.

public TestAssemblyConfiguration Configuration { get; }

Property Value

TestAssemblyConfiguration

Identifier

Gets an identifier for the current assembly. This is guaranteed to be unique, but not necessarily repeatable across runs (because it relies on GetHashCode()).

public string Identifier { get; }

Property Value

string

Project

Gets the project that this project assembly belongs to.

public XunitProject Project { get; }

Property Value

XunitProject

TestCasesToRun

Gets a list of serialized test cases to be run. If the list is empty, then all test cases (that match the filters) will be run.

public List<string> TestCasesToRun { get; }

Property Value

List<string>