Table of Contents

Constructor RegisterXunitSerializerAttribute

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

RegisterXunitSerializerAttribute(Type, params Type[])

Used to decorate xUnit.net test assemblies to register an external serializer for one or more supports types to serialize.

public RegisterXunitSerializerAttribute(Type serializerType, params Type[] supportedTypesForSerialization)

Parameters

serializerType Type

The type of the serializer. Must implement IXunitSerializer.

supportedTypesForSerialization Type[]

The types that are supported by the serializer.