Table of Contents

Class TestCollectionFactoryBase

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll
public abstract class TestCollectionFactoryBase : IXunitTestCollectionFactory
Inheritance
TestCollectionFactoryBase
Implements
Derived
Inherited Members

Constructors

TestCollectionFactoryBase(IXunitTestAssembly)

protected TestCollectionFactoryBase(IXunitTestAssembly testAssembly)

Parameters

testAssembly IXunitTestAssembly

The test assembly

Properties

DisplayName

Gets the display name for the test collection factory. This information is shown to the end user as part of the description of the test environment.

public abstract string DisplayName { get; }

Property Value

string

TestAssembly

Gets the test assembly.

protected IXunitTestAssembly TestAssembly { get; }

Property Value

IXunitTestAssembly

Methods

Get(Type)

Gets the test collection for a given test class.

public IXunitTestCollection Get(Type testClass)

Parameters

testClass Type

The test class.

Returns

IXunitTestCollection

The test collection.

GetDefaultTestCollection(Type)

Override to provide a test collection when the given test class is not decorated with any test collection attributes.

protected abstract IXunitTestCollection GetDefaultTestCollection(Type testClass)

Parameters

testClass Type

The test class

Returns

IXunitTestCollection