Table of Contents

Method AsTracker

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

AsTracker(IEnumerable?)

Wraps the given enumerable in an instance of CollectionTracker<T>.

public static CollectionTracker? AsTracker(this IEnumerable? enumerable)

Parameters

enumerable IEnumerable

The enumerable to be wrapped

Returns

AsTracker<T>(IEnumerable<T>?)

Wraps the given enumerable in an instance of CollectionTracker<T>.

public static CollectionTracker<T>? AsTracker<T>(this IEnumerable<T>? enumerable)

Parameters

enumerable IEnumerable<T>

The enumerable to be wrapped

Returns

Type Parameters

T

The item type of the collection