RecyclableList.Enumerator optimized. Tests fixed.
This commit is contained in:
1 parent
85aac1dad6
commit
20fe0cc491
3 files changed
+200
-209
No files matched your search
@@ -349,7 +349,11 @@ namespace Recyclable.CollectionsTests
|
||||
|
||||
// Act
|
||||
var yieldedItems = new List<long>((int)itemsCount);
|
||||
yieldedItems.AddRange(list);
|
||||
using var enumerator = list.GetEnumerator();
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
yieldedItems.Add(enumerator.Current);
|
||||
}
|
||||
|
||||
// Validate
|
||||
_ = yieldedItems.Count.Should().Be((int)itemsCount);
|
||||
|
||||
Reference in new issue
Block a user