Table of Contents

Interface ITypeActivator

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Represents the ability to create instances of types on behalf of the test framework.

public interface ITypeActivator
Extension Methods
Xunit.v3.ITypeActivatorExtensions.CreateInstance(Xunit.v3.ITypeActivator,System.Reflection.ConstructorInfo,System.Object[])

Remarks

This is currently only used for creating test class instances, but may be used in the future for other class creation operations.

Methods

CreateInstance(ConstructorInfo, object?[]?, Func<Type, IReadOnlyCollection<ParameterInfo>, string>)

Creates an instance of the specified type using the constructor that best matches the specified parameters.