Interface IRegisterXunitSerializerAttribute
Used to decorate xUnit.net test assemblies to register an external serializer for one or more supports types to serialize.
public interface IRegisterXunitSerializerAttribute
- Extension Methods
Remarks
Serializer registration attributes are only valid at the assembly level.
Properties
SerializerType
Gets the type of the serializer.
Type SerializerType { get; }
Property Value
Remarks
The serializer type must implement IXunitSerializer.
SupportedTypesForSerialization
Gets the types that are supported by the serializer.
Type[] SupportedTypesForSerialization { get; }
Property Value
- Type[]
Remarks
When searching for a serializer to deserialize a value, exact type matches are given higher priority than compatible type matches, and if more than one serializer can support a given type based on compatible type match, then one will be chosen arbitrarily to support the deserialization.