Table of Contents

Method SerializeStringArray

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

SerializeStringArray(JsonObjectSerializer, string, IEnumerable<string?>?, bool)

Serializes an array of strings into the object.

public static void SerializeStringArray(this JsonObjectSerializer serializer, string key, IEnumerable<string?>? values, bool includeNullArray = false)

Parameters

serializer
key string

The key to serialize the array to

values IEnumerable<string>

The values in the array

includeNullArray bool

Whether to serialize the array if it's null