Missing IList<T> interface added. Tiny cleanup.
This commit is contained in:
1 parent
8067bfb542
commit
4bfb40007a
2 files changed
+18
-10
No files matched your search
@@ -237,5 +237,22 @@ namespace Recyclable.CollectionsTests
|
||||
.And.ContainInConsecutiveOrder(testData)
|
||||
.And.BeEquivalentTo(testData);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CopyToShouldCopyAllItemsInTheCorrectOrder()
|
||||
{
|
||||
// Prepare
|
||||
var testData = _testData.ToArray();
|
||||
var list = new RecyclableArrayList<int>(testData);
|
||||
int[] yieldedItems = new int[testData.Length];
|
||||
|
||||
// Act
|
||||
list.CopyTo(yieldedItems, 0);
|
||||
|
||||
// Validate
|
||||
_ = yieldedItems.Should().HaveCount(testData.Length)
|
||||
.And.ContainInConsecutiveOrder(testData)
|
||||
.And.BeEquivalentTo(testData);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user