Table of Contents

Class TransformFactory

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

Used to retrieve a list of available

public class TransformFactory
Inheritance
TransformFactory
Inherited Members

Properties

AvailableTransforms

Gets the list of available transforms.

public static IReadOnlyList<Transform> AvailableTransforms { get; }

Property Value

IReadOnlyList<Transform>

Methods

CreateAssembliesElement()

Creates the root "assemblies" XML element.

public static XElement CreateAssembliesElement()

Returns

XElement

FinishAssembliesElement(XElement)

Finishes the assemblies element by supplementing with summary attributes.

public static void FinishAssembliesElement(XElement assembliesElement)

Parameters

assembliesElement XElement

GetXmlTransformers(XunitProject)

Gets the list of XML transformer functions for the given project.

public static List<Action<XElement>> GetXmlTransformers(XunitProject project)

Parameters

project XunitProject

The project to get transforms for.

Returns

List<Action<XElement>>

The list of transform functions.

Transform(string, XElement, string)

Runs the transformation for the given ID and XML, and writes it to the given output file.

public static void Transform(string id, XElement assembliesElement, string outputFileName)

Parameters

id string

The transform ID

assembliesElement XElement

The assembly XML to transform

outputFileName string

The output file name