Table of Contents

Class CollectionTrackerExtensions

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

Extension methods related to CollectionTracker<T>.

public static class CollectionTrackerExtensions
Inheritance
CollectionTrackerExtensions
Inherited Members

Methods

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

CollectionTracker

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

CollectionTracker<T>

Type Parameters

T

The item type of the collection

GetEnumerator(CollectionTracker)

Enumerates the elements inside the collection tracker.

public static IEnumerator GetEnumerator(this CollectionTracker tracker)

Parameters

tracker CollectionTracker

Returns

IEnumerator