Class TestCollectionFactoryBase
Base class with common functionality between CollectionPerAssemblyTestCollectionFactory and CollectionPerClassTestCollectionFactory.
public abstract class TestCollectionFactoryBase : IXunitTestCollectionFactory
- Inheritance
-
TestCollectionFactoryBase
- Implements
- Derived
- Inherited Members
Constructors
TestCollectionFactoryBase(IXunitTestAssembly)
Base class with common functionality between CollectionPerAssemblyTestCollectionFactory and CollectionPerClassTestCollectionFactory.
protected TestCollectionFactoryBase(IXunitTestAssembly testAssembly)
Parameters
testAssemblyIXunitTestAssemblyThe 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
TestAssembly
Gets the test assembly.
protected IXunitTestAssembly TestAssembly { get; }
Property Value
Methods
Get(Type)
Gets the test collection for a given test class.
public IXunitTestCollection Get(Type testClass)
Parameters
testClassTypeThe 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
testClassTypeThe test class