Method AddValue
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
AddValue<T>(IXunitSerializationInfo, string, T)
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.
public static void AddValue<T>(this IXunitSerializationInfo info, string key, T value)
Parameters
infokeystringThe key to store the value with
valueTThe value to be stored
Type Parameters
T