Table of Contents

Interface IXunitSerializable

Namespace
Xunit.Sdk

This interface should be implemented by any custom object which requires serialization. In addition to implementing this interface, objects must also offer a parameterless public constructor so that an empty object can be created to be deserialized into.

public interface IXunitSerializable
Extension Methods

Methods

Deserialize(IXunitSerializationInfo)

Called when the object should populate itself with data from the serialization info.

void Deserialize(IXunitSerializationInfo info)

Parameters

info IXunitSerializationInfo

The info to get the object data from

Serialize(IXunitSerializationInfo)

Called when the object should store its serialized values into the serialization info.

void Serialize(IXunitSerializationInfo info)

Parameters

info IXunitSerializationInfo

The info to store the object data into