21 references to MAX_ENUMERABLE_LENGTH
xunit.assert (21)
Sdk\ArgumentFormatter.cs (1)
411
if (idx ==
MAX_ENUMERABLE_LENGTH
)
Sdk\CollectionTracker.cs (20)
472
const int MAX_ENUMERABLE_LENGTH_HALF = ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
/ 2;
593
var endIndex = Math.Min(span.Length - 1, startIndex + ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
- 1);
594
startIndex = Math.Max(0, endIndex - ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
+ 1);
657
while (enumerator.CurrentIndex <= ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
)
684
while (currentIndex <= ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
)
715
while (currentIndex <= ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
)
734
var printLength = Math.Min(currentIndex + 1, ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
);
744
if (currentIndex >= ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
)
778
endIndex = startIndex + ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
- 1;
786
startIndex = Math.Max(0, endIndex - ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
+ 1);
820
readonly T[] currentItemsRingBuffer = new T[ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
];
848
var itemIndex = Math.Max(0, CurrentIndex - ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
+ 1);
850
var indexInRingBuffer = (currentItemsLastInsertionIndex - CurrentIndex + itemIndex) % ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
;
852
indexInRingBuffer += ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
;
859
indexInRingBuffer = (indexInRingBuffer + 1) % ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
;
885
if (CurrentIndex <= ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
)
890
currentItemsLastInsertionIndex = (currentItemsLastInsertionIndex + 1) % ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
;
915
if (index < 0 || index <= CurrentIndex - ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
|| index > CurrentIndex)
918
var indexInRingBuffer = (currentItemsLastInsertionIndex - CurrentIndex + index) % ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
;
920
indexInRingBuffer += ArgumentFormatter.
MAX_ENUMERABLE_LENGTH
;