Table of Contents

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

serializer
key string

The key to serialize the array to

values IEnumerable<int>

The values in the array

includeNullArray bool

Whether to serialize the array if it's null