Table of Contents

Interface IXunitSerializationInfo

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

An interface that is implemented by the serialization infrastructure in xUnit.net. This is passed to objects which implement IXunitSerializable so they can serialize and deserialize themselves from the serialization store.

public interface IXunitSerializationInfo
Extension Methods
Xunit.Sdk.XunitSerializationInfoExtensions.AddValue``1(Xunit.Sdk.IXunitSerializationInfo,System.String,``0)
Xunit.Sdk.XunitSerializationInfoExtensions.GetValue``1(Xunit.Sdk.IXunitSerializationInfo,System.String)

Methods

AddValue(string, object?, Type?)

Adds a value to the serialization. Supported value types include the built-in intrinsics (string, int, long, float, double, and decimal, including nullable versions of those), any class which implements IXunitSerializable), or arrays of any supported types.

GetValue(string)

Gets a value from the serialization.