Tests for RecyclableArrayList.Contains and RecyclableList.Clear added.
This commit is contained in:
1 parent
360f1c9880
commit
23e92b0521
2 files changed
+33
-2
No files matched your search
@@ -137,7 +137,7 @@ namespace Recyclable.CollectionsTests
|
||||
{
|
||||
// Prepare
|
||||
using var list = NewRecyclableList;
|
||||
|
||||
|
||||
// Act
|
||||
var actual = new int[list.LongCount];
|
||||
list.CopyTo(actual, 0);
|
||||
@@ -229,5 +229,19 @@ namespace Recyclable.CollectionsTests
|
||||
// Act
|
||||
list.Dispose();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ClearShouldRemoveAllItems()
|
||||
{
|
||||
// Prepare
|
||||
using var list = NewRecyclableList;
|
||||
_ = list.LongCount.Should().NotBe(0);
|
||||
|
||||
// Act
|
||||
list.Clear();
|
||||
|
||||
// Validate
|
||||
_ = list.LongCount.Should().Be(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user