Table of Contents

Method GetSafeEnumerator

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

GetSafeEnumerator()

Gets a safe version of IEnumerator that prevents double enumeration and does all the necessary tracking required for collection formatting. Should should be the same value returned by GetEnumerator(), except non-generic.

protected override IEnumerator GetSafeEnumerator()

Returns

IEnumerator