Table of Contents

Method FormatStart

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

FormatStart(int)

Formats the beginning part of the collection.

public override string FormatStart(int depth = 1)

Parameters

depth int

The optional printing depth (1 indicates a top-level value)

Returns

string

The formatted collection

FormatStart(IEnumerable<T>, int)

Formats the beginning part of a collection.

public static string FormatStart(IEnumerable<T> collection, int depth = 1)

Parameters

collection IEnumerable<T>

The collection to be formatted

depth int

The optional printing depth (1 indicates a top-level value)

Returns

string

The formatted collection

FormatStart(ReadOnlySpan<T>, int)

Formats the beginning part of a span.

public static string FormatStart(ReadOnlySpan<T> span, int depth = 1)

Parameters

span ReadOnlySpan<T>

The span to be formatted

depth int

The optional printing depth (1 indicates a top-level value)

Returns

string

The formatted span