Method SerializeIntArray
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
SerializeIntArray(JsonObjectSerializer, string, IEnumerable<int>?, bool)
Serializes an array of integers into the object.
public static void SerializeIntArray(this JsonObjectSerializer serializer, string key, IEnumerable<int>? values, bool includeNullArray = false)
Parameters
serializerkeystringThe key to serialize the array to
valuesIEnumerable<int>The values in the array
includeNullArrayboolWhether to serialize the array if it's null