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
serializerkeystringThe key to serialize the array to
valuesIEnumerable<string>The values in the array
includeNullArrayboolWhether to serialize the array if it's null