Method AddRegisteredSerializers
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
AddRegisteredSerializers(Assembly, List<string>?)
Add serializers that have been registered in the given assembly.
public void AddRegisteredSerializers(Assembly assembly, List<string>? warnings = null)
Parameters
assemblyAssemblyThe assembly to get registrations from
warningsList<string>An optional collection to receive warnings generated during the registration
Remarks
The warnings collection will include warnings in the following circumstances:
- When the serializer type that does not implement IXunitSerializer
- When the registration contains no support types to serialize
- When a supported type to serialize is duplicated with another serializer
- When a supported type is covered by a built-in serializer
- An exception is thrown while creating the serializer